Template::filename()

Return corresponding template filename including path, or set template filename

Usage

// basic usage
$string = $template->filename();

// usage with all arguments
$string = $template->filename(string $filename = null);

Arguments

NameType(s)Description
$filename (optional)string

Specify basename or path+basename to set, or omit to get filename. This argument added 3.0.143.

Return value

string

Exceptions

Method can throw exceptions on error:

  • WireException


Template methods and properties

API reference based on ProcessWire core version 3.0.251