Hi there,
I'm getting the following error message:
Phalcon\Mvc\View\Exception: Volt directory can't be written in /mae/www/html/host_ui/public/index.php on line 98
Call Stack: 0.0216 672008 1. {main}() /mae/www/html/host_ui/public/index.php:0 6.3427 699448 2. Phalcon\Mvc\Application->handle() /mae/www/html/host_ui/public/index.php:98
I have this code:
//Setup the view component
$di->set('view', function() use ($config) {
$view = new \Phalcon\Mvc\View();
$view->setViewsDir(__DIR__ . $config->application->viewsDir);
$view->registerEngines(array(
'.volt' => 'volt',
'.phtml' => 'Phalcon\Mvc\View\Engine\Php'
));
return $view;
});
$di->set('volt', function($view, $di) use ($config) {
$volt = new \Phalcon\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions(array(
'compiledPath' => $config->application->cacheDir
));
return $volt;
}, true);
My cacheDir and all of its subdirectories have been set to 777.
Is there anything else that might be going wrong here? Do I need to set rights on any other folder for Volt to work?
Thanks.