Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • NFileTemplate
  • NTemplate
  • NTemplateHelpers

Interfaces

  • IFileTemplate
  • ITemplate

Exceptions

  • NTemplateException
  • Overview
  • Package
  • Class
  • Tree

Class NFileTemplate

Template stored in file.

NObject
Extended by NTemplate implements ITemplate
Extended by NFileTemplate implements IFileTemplate
Package: Nette\Templating
Author: David Grudl
Located at Templating/FileTemplate.php
Methods summary
public
# __construct( string $file = NULL )

Constructor.

Constructor.

Parameters

$file
string
template file path
public NFileTemplate
# setFile( string $file )

Sets the path to the template file.

Sets the path to the template file.

Parameters

$file
string
template file path

Returns

NFileTemplate
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 string
# getSource( )

Returns template source code.

Returns template source code.

Returns

string

Overrides

NTemplate::getSource
public
# render( )

Renders template to output.

Renders template to output.

Overrides

NTemplate::render

Implementation of

ITemplate::render
Methods inherited from NTemplate
__call(), __get(), __isset(), __set(), __toString(), __unset(), add(), compile(), getCacheStorage(), getFilters(), getHelperLoaders(), getHelpers(), getParameters(), registerFilter(), registerHelper(), registerHelperLoader(), save(), setCacheStorage(), setParameters(), setSource(), setTranslator()
Methods inherited from NObject
__callStatic(), extensionMethod(), getReflection()
Properties inherited from NTemplate
$onPrepareFilters
Nette Framework 2.0.3 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.7.0