SmartyTemplateRenderer class

Renderer for Smarty templates.

Class Overview

Renderer for Smarty templates.

Public Methods

SmartyTemplateRenderer($basetemplate=null, $directories=null, $mode=null)

Constructor for a new SmartyTemplateRenderer instance.

Parameters

$basetemplate

Template name (optional, default is null)

$directories

Directories to use (optional, see SmartyTemplate documentation for more information)

$mode

Default render mode (optional, default is null)

See also

render($mode=null, $params=null)

Renders the current instance.

The $mode parameter can be used to specify which render mode should be used. First, an attempt is made to use a template. If this fails, a render method is called.

Parameters

$mode

A string denoting the render mode to use (optional).

$params

Additional parameters can be specified, these will be passed unchanged to the render methods.

Inheritance

Base Classes

Inherited members