namespace Nette\Templates
Class FileTemplate
Template stored in file.
- Nette\Object
-
Nette\Templates\Template implements ITemplate
-
Nette\Templates\FileTemplate implements IFileTemplate
public
|
#
__construct(
string
$file = NULL
)
Constructor. Constructor. Parameters$file string template file path |
public
FileTemplate
|
#
setFile(
string
$file
)
Sets the path to the template file. Sets the path to the template file. Parameters$file string template file pathReturnsFileTemplate provides a fluent interface
Implementation of |
public
string
|
#
getFile(
)
Returns the path to the template file. Returns the path to the template file. Returnsstring template file path
Implementation of |
public
void
|
#
render(
)
Renders template to output. |
public static
void
|
#
setCacheStorage(
Nette\Caching\ICacheStorage
$storage
)
Set cache storage. Set cache storage. Parameters$storage Nette\Caching\Cache |
public static
Nette\Caching\ICacheStorage
|
#
getCacheStorage(
)
|
Methods Inherited From Template
registerFilter(), getFilters(), render(), save(), __toString(), compile(), registerHelper(), registerHelperLoader(), getHelpers(), __call(), setTranslator(), add(), setParams(), getParams(), __set(), __get(), __isset(), __unset(), optimizePhp()
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
static
int
|
$cacheExpire | NULL |
# |
Properties Inherited From Template
$warnOnUndefined, $onPrepareFilters