TemplateFile class
A template file that will be loaded and executed as PHP and its output returned.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Template
class also inherits all the methods and properties of: WireData and Wire.
Common
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
Template Template Template | bool | Called when render of specific file failed with Exception |
Properties
Name | Return | Summary | Default |
---|---|---|---|
Template | array | Optional file name(s) used for append. | |
Template | string | Current file being rendered (whether primary, prepend, append). | |
Template | string | Primary file to render. | |
Template | array | Optional file name(s) used for prepend. | |
Template | bool | Whether or not leading/trailing whitespace is trimmed from output 3.0.154+. |
Additional methods and properties
In addition to the methods and properties above, Template
API reference based on ProcessWire core version 3.0.251