PHP Class Gdn_Smarty, vanilla

Mostrar archivo Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Property Type Description
$_Smarty The smarty object used for the template.

Public Methods

Method Description
init ( string $Path, Gdn_Controller $Controller )
render ( string $Path, Controller $Controller ) Render the given view.
smarty ( ) : Smarty
testTemplate ( type $Path ) : boolean See if the provided template causes any errors.

Method Details

init() public method

public init ( string $Path, Gdn_Controller $Controller )
$Path string
$Controller Gdn_Controller

render() public method

Render the given view.
public render ( string $Path, Controller $Controller )
$Path string The path to the view's file.
$Controller Controller The controller that is rendering the view.

smarty() public method

public smarty ( ) : Smarty
return Smarty The smarty object used for rendering.

testTemplate() public method

See if the provided template causes any errors.
public testTemplate ( type $Path ) : boolean
$Path type Path of template file to test.
return boolean TRUE if template loads successfully.

Property Details

$_Smarty protected_oe property

The smarty object used for the template.
protected $_Smarty