This is the function I'm using.
$di->set('view', function() {
$view = new Phalcon\Mvc\View();
$view->setViewsDir('../app/views/');
$view->registerEngines(array(
".phtml" => function($view, $di) {
$volt = new Phalcon\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions(array(
'compiledPath' => '../app/cache/',
'compiledExtension' => '.compiled',
'compileAlways' => true,
'stat' => true
)); #options
return $volt;
})); #register
return $view;
}); #view
Any ideas why I still see cached files in /app/cache/ ? It's very anoying having to delete this files manually when developing.
Thank You!