TemplateFile::setPrependFilename()
Set a file to prepend to the template file at render time
Usage
$bool = $templateFile->setPrependFilename(string $filename);Arguments
| Name | Type(s) | Description |
|---|---|---|
$filename | string |
Return value
boolReturns true on success, false if file doesn't exist.
Exceptions
Method can throw exceptions on error:
WireException- if file doesn't exist (unless throwExceptions is disabled)
TemplateFile methods and properties
API reference based on ProcessWire core version 3.0.253