This morning I just get another problem with Volt. My code is:
$vista->registerEngines([
'.volt' => 'Phalcon\Mvc\View\Engine\Volt',
'.phtml' => function ($vista, $ID)
{
$volt = new Volt($vista, $ID);
$volt->setOptions([
'compileAlways' => true,
'compiledPath' => '../vistas/compiladas/',
'compiledSeparator' => '_',
'compiledExtension' => '.compiled'
]);
return $volt;
}
]);
The problem is that compiledPath
only works for one file (a Volt template), but not for the others: so I only get one file in his path, meanwhile I get all the others compiled in their homepaths.
I resolved this problem with a workaround time ago, but this morning just stop working (and that's why I'm trying to do this, more easy, way).