This is a simple library which has two static methods allowing you to get/set flash data or messages.
Coded by Joel Vardy.
Add the following to your composer.json require object:
"joelvardy/flash": "dev-master"Set data upon failure.
Flash::data(array(
'username' => $username,
'email' => $email
));Read data to display on the front end:
$data = Flash::data();Set an error message:
Flash::message('error', 'You must enter a valid email address.');Read all flash messages:
$messages = Flash::message();You may also be interested in my template library.