About FlashMessage
Easily create RoR style flash messages that survive reloads and redirects.
Information
Released
January 28, 2016
Supported Database
MySQL, SQL Server
License
GPLv2
Supported Versions
2.0 - Current
Downloads
791
Instructions
Install through package management.Set a message as follows:
PHP:$modx->runSnippet('Flash', array('notice' => 'You successfully barred Foo!'));
SNIPPET:[[!Flash?error=`You cannot foo that bar!`]]
And retrieve like this:
[[!Flash:error:notempty=`<div clas="alert alert-error">[[+flash_error]]</div>`]]
or:
[[!Flash:notice:notempty=`<div clas="alert alert-success">[[+flash_notice]]</div>`]]