<?php if (validation_errors()): ?>
    <div class="alert alert-danger alert-dismissible show" role="alert">
        <strong>Error!</strong>
        <?php echo validation_errors(); ?>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
<?php endif; ?>