Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 53 | All time: 10,652 This week: 455![]() |
Version | License | PHP version | Categories | |||
messages 1.0.0 | The PHP License | 5 | HTML, PHP 5, User Management |
Description | Author | |
This package can store and display messages to show to site users. |
$ composer require dframe/messages
$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
Open-sourced software licensed under the MIT license
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | tests |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.