cphalcon
cphalcon copied to clipboard
[NFR][Volt] Compiling files, keeping the directory structure
I offer to add parameter preserveDirs to Volt engine, which will keep the directory structure.
For example, in code:
$volt = new \Phalcon\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions(array
"compiledPath" => "../app/views_c/",
"preserveDirs" => true
));
source dirs
/views
/layouts
index.volt
compiled dirs
/views_c
/layouts
index.volt.php
This can be done in 1.2.0 this way: http://forum.phalconphp.com/discussion/351/compiled-template-name#C1492