PHP Class Phalcon\Test\Module\View\Engine\Twig

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Inheritance: extends Phalcon\Mvc\View\Engine, implements Phalcon\Mvc\View\EngineInterface
Datei anzeigen Open project: phalcon/cphalcon

Protected Properties

Property Type Description
$twig

Public Methods

Method Description
__construct ( Phalcon\Mvc\ViewBaseInterface $view, Phalcon\DiInterface $dependencyInjector = null ) Twig constructor.
render ( string $path, mixed $params, boolean $mustClean = false ) Renders a view using the template engine

Method Details

__construct() public method

Twig constructor.
public __construct ( Phalcon\Mvc\ViewBaseInterface $view, Phalcon\DiInterface $dependencyInjector = null )
$view Phalcon\Mvc\ViewBaseInterface
$dependencyInjector Phalcon\DiInterface

render() public method

Renders a view using the template engine
public render ( string $path, mixed $params, boolean $mustClean = false )
$path string
$params mixed
$mustClean boolean

Property Details

$twig protected_oe property

protected $twig