<?php if(!defined('ACCESS_CONTROL')) {header($_SERVER['SERVER_PROTOCOL']. ' 404'); exit('404 not found');}?>
<?php if(isset($errors) && is_array($errors) && $errors):?>
    <div class="alert alert-danger alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <ul>
            <?php foreach($errors as $error):?>
            <li> <?php echo $error?> </li>
            <?php endforeach?>
        </ul>

    </div>
<?php endif?>