Return to v2.0 docs

flash()


Controller Flash Functions any controller


Returns the value of a specific key in the Flash (or the entire Flash as a struct if no key is passed in).

Name Type Required Default Description
key string No The key to get the value for.
// Get the current value of notice in the Flash
notice = flash("notice");
// Get the entire Flash as a struct
flashContents = flash();

Related Functions

Flash Functions