PHP Classes

File: views/errors/alert.php

Recommend this page to a friend!
  Classes of akeel   F3A   views/errors/alert.php   Download  
File: views/errors/alert.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: F3A
PHP Web development framework like Laravel lite
Author: By
Last change:
Date: 3 years ago
Size: 429 bytes
 

Contents

Class file image Download
<?php /* All Error message goes here */

if (isset($_SESSION['alert'])):
    echo
'<div uk-alert class="uk-box-shadow-small '.$_SESSION['type'].'">';
    echo
'<a class="uk-alert-close" uk-close></a><ul class="uk-list uk-list-bullet">';
    foreach (
$_SESSION['alert'] as $key => $alert):
        echo
"<li>$alert</li>";
    endforeach;
    echo
'</ul></div>';

    unset(
$_SESSION['alert']);
    unset(
$_SESSION['type']);
endif;