|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2017-03-23 (3 years ago)||Not enough user ratings||Total: 106||All time: 9,245 This week: 341|
|flash-alerts 1.0.0||Custom (specified...||5||HTML, PHP 5|
This is a simple class can register and display alert messages using sessions.
This is a really simple and easy script for creating alert box using Bootstrap with a custom message and sytle. If you want to display an alert box after a completed form or some action you can use this.
Use this is really simple. Just follow the next steps.
Its really important start and destroy the sessions.
session_start(); // at the top of the script/page include 'path/to/alerts.php'; $alerts = new alerts(); //your code page..... session_destroy(); // at the bottom of the script/page
Before displaying you must create it. This work as a function call.
$alerts->create('Thanks for use this', 'info', '/page.php');
This function creata a session called "flash" that store the div with the parameters. If the session is created and everything its okay, it will redirect to "/page.php".
Once is included and the sessions are started you must load it.
$alerts->display(); //will display <div class="alert alert-info">Thanks for use this</div>
|Version Control||Unique User Downloads||Download Rankings|