$templates


Template Properties

$template->filename

Introduced in Version 2.0

Description

Get or set a template's filename, including path (this is auto-generated from the name, though you may modify it at runtime if it suits your need).

The below will ouput the full path to the specified template's file, such as:

c:/path/to/processire/site/templates/skyscraper.php

$t = $templates->get("skyscraper");
echo $t->filename;

Related

Post Comment