PHP Classes


Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe PHP Messages System  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Dframe PHP Messages System
Store and display messages to show to site users
Author: By
Last change:
Date: 1 year ago
Size: 1,519 bytes


Class file image Download

Dframe/Sesssion - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo


$ 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

For more information send a message to info at phpclasses dot org.