Packages

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

Classes

  • NBaseTemplate
  • NCachingHelper
  • NCurlyBracketsMacros
  • NLatteFilter
  • NLatteMacros
  • NSnippetHelper
  • NTemplate
  • NTemplateCacheStorage
  • NTemplateFilters
  • NTemplateHelpers

Interfaces

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

Class NTemplate

Template stored in file.

NObject
Extended by NBaseTemplate implements ITemplate
Extended by NTemplate implements IFileTemplate
Package: 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 NTemplate
# setFile( string $file )

Sets the path to the template file.

Sets the path to the template file.

Parameters

$file
string
template file path

Returns

NTemplate
provides a fluent interface

Implementation of

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

IFileTemplate::getFile
public
# render( )

Renders template to output.

Renders template to output.

Implementation of

ITemplate::render
public static
# setCacheStorage( ICacheStorage $storage )

Set cache storage.

Set cache storage.

Parameters

$storage
NCache
public static ICacheStorage
# getCacheStorage( )

Returns

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