Skip to content

Kirby 5.3.2

$template->file()

Detects the location of the template file if it exists.

$template->file(): string|null

Return types

stringornull

This method modifies the existing $template object it is applied to and returns it again.

Parent class

Kirby\Template\Template