PHP Class Gdn_Smarty, vanilla

Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Свойство Type Description
$_Smarty The smarty object used for the template.

Méthodes publiques

Méthode 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 méthode

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

render() public méthode

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 méthode

public smarty ( ) : Smarty
Résultat Smarty The smarty object used for rendering.

testTemplate() public méthode

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

Property Details

$_Smarty protected_oe property

The smarty object used for the template.
protected $_Smarty