I have found a bug, if I have not committed myself For example in my Module.php
//This works OK
$di['view'] = function() {
$view = new \Phalcon\Mvc\View();
$view->registerEngines(array(
".volt" => 'Phalcon\Mvc\View\Engine\Volt'
));
$view->setViewsDir(__DIR__ . '/views/');
$view->setLayoutsDir('../../../layouts');
$view->setTemplateAfter('main');
return $view;
};
//but if the path is absolute, doesn't work
//APPLICATION_PATH = /real/path/to/my/app
$view->setLayoutsDir(APPLICATION_PATH . '/../../layouts');
Am I wrong? or this is a issue?