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

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
$mustache Mustache_Engine The internal Mustache Engine
$params array The view params

Public Methods

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

Method Details

__construct() public method

Mustache 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

$mustache protected_oe property

The internal Mustache Engine
protected Mustache_Engine $mustache
return Mustache_Engine

$params protected_oe property

The view params
protected array $params
return array