Set the directory to temporarily change to during rendering
If not set, it changes to the directory that $filename is in. To disable TemplateFile from changing any directories, set to false (3.0.154+).
Usage
$templateFile->setChdir($chdir);
Arguments
Name | Type(s) | Description |
---|---|---|
chdir | string, bool |
TemplateFile methods and properties
API reference based on ProcessWire core version 3.0.244