<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

    <!--print custom error message-->
    <?php if ($this->session->flashdata('error')): ?>
        <div class="alert alert-danger fade in alert-dismissible show">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true" style="font-size:20px">×</span>
            </button>    
            <?php echo $this->session->flashdata('error'); ?>
        </div>
    <?php endif; ?>

    <!--print custom success message-->
    <?php if ($this->session->flashdata('success')): ?>
        <div class="alert alert-success fade in alert-dismissible show">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true" style="font-size:20px">×</span>
            </button>
            <?php echo $this->session->flashdata('success'); ?>
        </div>
    <?php endif; ?>