• MODX.com

    800 downloads

FlashMessage

FlashMessage is an extra by magnatron, first released on 2016-01-28.

Package Description

Easily create RoR style flash messages that survive reloads and redirects.

Usage/Installation 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>`]]

Details

Developer(s)
magnatron
Released
2016-01-28
First seen
2016-01-28
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

FlashMessage Releases

Vendor Signature Released on
MODX.com 1.0-beta1 2016-01-28 (10 years ago)