PHP Class Phalcon\Mvc\View\Engine\Twig

Inheritance: extends Phalcon\Mvc\View\Engine, implements Phalcon\Mvc\View\EngineInterface
Afficher le fichier Open project: phalcon/incubator

Protected Properties

Свойство Type Description
$twig Phalcon\Mvc\View\Engine\Twig\Environment

Méthodes publiques

Méthode Description
__construct ( Phalcon\Mvc\ViewBaseInterface $view, Phalcon\DiInterface $di = null, array $options = [], array $userFunctions = [] )
getTwig ( ) : Environment Returns Twig environment object.
render ( string $path, array $params, boolean $mustClean = false )

Méthodes protégées

Méthode Description
registryFunctions ( Phalcon\Mvc\ViewInterface $view, Phalcon\DiInterface $di, array $userFunctions = [] ) Registers common function in Twig

Method Details

__construct() public méthode

public __construct ( Phalcon\Mvc\ViewBaseInterface $view, Phalcon\DiInterface $di = null, array $options = [], array $userFunctions = [] )
$view Phalcon\Mvc\ViewBaseInterface
$di Phalcon\DiInterface
$options array
$userFunctions array

getTwig() public méthode

Returns Twig environment object.
public getTwig ( ) : Environment
Résultat Phalcon\Mvc\View\Engine\Twig\Environment

registryFunctions() protected méthode

Registers common function in Twig
protected registryFunctions ( Phalcon\Mvc\ViewInterface $view, Phalcon\DiInterface $di, array $userFunctions = [] )
$view Phalcon\Mvc\ViewInterface
$di Phalcon\DiInterface
$userFunctions array

render() public méthode

public render ( string $path, array $params, boolean $mustClean = false )
$path string
$params array
$mustClean boolean

Property Details

$twig protected_oe property

protected Environment,Phalcon\Mvc\View\Engine\Twig $twig
Résultat Phalcon\Mvc\View\Engine\Twig\Environment