dev-master
9999999-dev http://www.student.bth.se/~olve12/phpmvc/kmom05/webroot/Various base classes for flash message management
MIT
The Requires
- php >=5.4
- anax/mvc dev-master
by Olivia ver
flash education
Wallogit.com
2017 © Pedro Peláez
Various base classes for flash message management
A flash messagae Anax module, (*1)
This flash module for your Anax MVC is composed to you by Olivia V. n.a.g.i@live.se., (*2)
Use composer and packagist, (*3)
Open the /webroot folder where you will find a demo file and a quick view file, (*4)
Copy and paste flash-demo.php to your own /webroot folder for testing, (*5)
If the site isn't displayed correctly, move the CFlash.php and CFlashSession to your own /src folder, (*6)
In composer:, (*7)
$ composer require olve/flash, (*8)
Dependencies:, (*9)
"php": ">=5.4", "anax/mvc": "dev-master", (*10)
There are two classes - CFlash.php and CFlashSession. They're both called by the webroot file flash-demo.php., (*11)
The style sheet is called in flash-demo.php as well, "$app->theme->addStylesheet('../vendor/olve/webroot/css/flash.css'", (*12)
This module will sent success, notice and error messages. It's based off a Phalcon tutorial., (*13)
The main code in flash-demo.php will call CFlashSession to ensure that the notice message has survived the redirect., (*14)
$content .= $app->flash->success('Success message!');
$content .= $app->flash->notice('Notice message.');
$content .= $app->flash->error('Error message');
Styles all the messages in a separate letters matter., (*15)
Various base classes for flash message management
MIT
flash education