Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • BaseTemplate
  • CachingHelper
  • CurlyBracketsMacros
  • LatteFilter
  • LatteMacros
  • SnippetHelper
  • Template
  • TemplateCacheStorage
  • TemplateFilters
  • TemplateHelpers

Interfaces

  • IFileTemplate
  • ITemplate
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class Template

Template stored in file.

Nette\Object
Extended by Nette\Templates\BaseTemplate implements Nette\Templates\ITemplate
Extended by Nette\Templates\Template implements Nette\Templates\IFileTemplate
Namespace: Nette\Templates
Author: David Grudl
Located at Templates/Template.php
Methods summary
public
# __construct( string $file = NULL )

Constructor.

Constructor.

Parameters

$file
string
template file path
public Nette\Templates\Template
# setFile( string $file )

Sets the path to the template file.

Sets the path to the template file.

Parameters

$file
string
template file path

Returns

Nette\Templates\Template
provides a fluent interface

Implementation of

Nette\Templates\IFileTemplate::setFile
public string
# getFile( )

Returns the path to the template file.

Returns the path to the template file.

Returns

string
template file path

Implementation of

Nette\Templates\IFileTemplate::getFile
public
# render( )

Renders template to output.

Renders template to output.

Implementation of

Nette\Templates\ITemplate::render
public static
# setCacheStorage( Nette\Caching\ICacheStorage $storage )

Set cache storage.

Set cache storage.

Parameters

$storage
Nette\Caching\Cache
public static Nette\Caching\ICacheStorage
# getCacheStorage( )

Returns

Nette\Caching\ICacheStorage
Methods inherited from Nette\Templates\BaseTemplate
__call(), __get(), __isset(), __set(), __toString(), __unset(), add(), compile(), getFilters(), getHelpers(), getParams(), optimizePhp(), registerFilter(), registerHelper(), registerHelperLoader(), setParams(), setTranslator()
Methods inherited from Nette\Object
__callStatic(), extensionMethod(), getReflection()
Properties summary
public static integer $cacheExpire NULL
#
Properties inherited from Nette\Templates\BaseTemplate
$onPrepareFilters, $warnOnUndefined
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0