message Function

Registers a message to be displayed to the user.

Summary

ElementFunction
ReturnsObject

Arguments

messageString[required] The text to display to the user.
typeStringThe type of error, added as a CSS class named "pagetype-message-%TYPE%".

Example

$this->message('Could not save data',PageTypeCMS::ERROR);