TemplateFile::setPrependFilename()

Set a file to prepend to the template file at render time

Usage

$bool = $templateFile->setPrependFilename(string $filename);

Arguments

NameType(s)Description
$filenamestring

Return value

bool

Returns 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.252