Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-08-14 (27 days ago) | | Not yet rated by the users | | Total: 46 This week: 2 | | All time: 10,121 This week: 88 |
|
Description | | Author |
This package can store and display messages to show to site users.
It can take a cache class object as a parameter and store messages meant to be displayed to certain site users.
The package can also retrieve any previously stored messages for the current user and displays the messages on the current page. | |
|
|
Innovation award
Nominee: 2x |
|
Details
Dframe/Sesssion - Component
Composer
$ composer require dframe/messages
Standalone
$driver = new \Dframe\Component\Session\Session('sessionName');
/
* $driver Can be any class implements interface \Psr\SimpleCache\CacheInterface
*/
$messages = new \Dframe\Component\Messages\Messages($driver);
$messages->add('info', 'String Information.'); // types ['help', 'info', 'warning', 'error', 'success']
$messages->hasMessages('info'); // Check to see if there are any ($type) messages queued.
$messages->hasErrors(); // true There ARE error messages false There are NOT any error messages
$messages->display('all'); // Return true/false
License
Open-sourced software licensed under the MIT license
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.