https://packagist.org/packages/tamtamchik/simple-flash Demo: http://demo.tamtamchika.net/simple-flash/examples/ Install Via Composer . $ composer require tamtamchik/simple-flash Inside your project make sure to start a session and load Composer autoload to make everything work. <?php // Start a Session if( !session_id() ) @session_start(); // Initialize Composer Autoload require_once 'vendor/autoload.php'; Warning! This library contains global flash() function, that potentially can break your function with this name. Now you are warned! Usage There are 3 ways to use library: use \Tamtamchik\SimpleFlash\Flash; // Instance $flash = new Flash(); $flash->message('Tea.'); // Static Flash::message('Earl Gray.'); // Function flash()->message('Hot!'); Messages added by calling message($message, $type = 'info') method. In case of calling a function flash() you can pass $message, $type ...
Infowebtutorial blog provide meaning full and useful information about all types of programming languages ,web design ,computer information and window operating system information