/** * Constructor * Initializes simple view * * @param null $options */ public function __construct($options = null) { parent::__construct($options); $this->registerEngines(array('.volt' => function ($this, $di) use($options) { $volt = new PhalconView\Engine\Volt($this, $di); $volt->setOptions(array('compiledPath' => $options['cacheDir'], 'compiledSeparator' => '_')); return $volt; }, '.phtml' => 'Phalcon\\Mvc\\View\\Engine\\Php')); }
/** * Constructor * * @param \Phalcon\DI $di */ public function __construct($options = null) { parent::__construct($options); }