/** * {@inheritdoc} */ public function register(\Phalcon\DiInterface $di) { //Set the views cache service $di->set(self::SERVICE_NAME, function () { $view = new \Vegas\Mvc\View(); $view->setViewsDir('../app/views/'); $view->registerEngines([".volt" => 'voltService']); return $view; }); }