Namespace Flash
Object holding system generated messages between requests. Useful for things such as form error messages, success messages, etc.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Flash.addMessage(message)
Add a message to the Flash object, which is then available
|
<static> |
Flash.getError()
Get all the error messages added to the flash since the last time it was cleared.
|
Method Detail
<static>
Flash.addMessage(message)
Add a message to the Flash object, which is then available
- Parameters:
- {String} message
- The message to store
<static>
{String}
Flash.getError()
Get all the error messages added to the flash since the last time it was cleared.
- Returns:
- An HTML formatted
String
containing all the error messages.