PHP Класс Gdn_Smarty, vanilla

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_Smarty The smarty object used for the template.

Открытые методы

Метод Описание
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.

Описание методов

init() публичный Метод

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

render() публичный Метод

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 smarty ( ) : Smarty
Результат Smarty The smarty object used for rendering.

testTemplate() публичный Метод

See if the provided template causes any errors.
public testTemplate ( type $Path ) : boolean
$Path type Path of template file to test.
Результат boolean TRUE if template loads successfully.

Описание свойств

$_Smarty защищенное свойство

The smarty object used for the template.
protected $_Smarty