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);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php