cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR][Volt] Compiling files, keeping the directory structure

Open applejohnny opened this issue 13 years ago • 1 comments

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

applejohnny avatar Jan 18 '13 05:01 applejohnny

This can be done in 1.2.0 this way: http://forum.phalconphp.com/discussion/351/compiled-template-name#C1492

ghost avatar May 22 '13 17:05 ghost