error Function

Registers an error.

Summary

ElementFunction
ReturnsObject

Arguments

codeNumber[required] The error code.
messageString[required] The description of the error.
lineNumber[required] The line number.
fileString[required] The filename.

Example

PageType.error(0,'Something has failed',1,'pagetype.cms.php');
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php