Hey dudes!
why i can't load template room.v ?
init View:
$di->set("view", function () {
$view = new Phalcon\Mvc\View();
$view->setViewsDir("../app/views/");
$view->registerEngines([
'.v' => function ($view, $di) {
$volt = new Phalcon\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions([
'compiledPath' => '../app/cache/',
'compileAlways' => true,
'compiledSeparator' => '__',
]);
return $volt;
}
]);
return $view;
});
RoomsController.php:
...
public function showAction() {
$this->view->roomName = $this->dispatcher->getParam('name');
$this->view->pick('room');
}
...
Just empty screen. No errors, no except-s.