Beispiel #1
0
 /**
  * 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'));
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param \Phalcon\DI   $di
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
 }