FlashMessage

Creator: Magnatron (magnatron)

Need help installing this extra?

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
792

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>`]]

Current releases

1.0-beta1
View | Download
January 28, 2016
2.0 - Current