dev-master
9999999-dev http://idajosefin.comFlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC.
MIT
The Requires
- php >=5.4
by Ida Eriksson
messages status flash flashing
Wallogit.com
2017 © Pedro Peláez
FlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC.
FlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC., (*2)
The easiest way to install this is using composer. Add this your composer.json:, (*3)
"require": {
"ider/flashmessages": "dev-master"
},
Session must be started before using FlashMessages. In order to include the class in you Anax-MVC, you can add this in your front controller:, (*4)
$di->setShared('FlashMessages', function() use ($di) {
$FlashMessages = new \ider\FlashMessages\FlashMessages($di);
return $FlashMessages;
});
Four different types of messages can be generated. Here is and example of how you can display a message in Anax-MVC:, (*5)
$app->FlashMessages->addSuccess("Yes, Everything went very smoothly!");
$app->FlashMessages->addInfo("This is very important information.");
$app->FlashMessages->addWarning("This is a warning.");
$app->FlashMessages->addError("Too bad! Something went wrong.");
FlashMessages is a class to handle success, debug, warning and error messages. It's made for the framework Anax-MVC.
MIT
messages status flash flashing