Specify the directory layouts and partials
For what purpose the directory layouts and partials bound relative to the views directory? It is very inconvenient to multimodule applications where all modules share a common layout. In this case the views directory for each module should have its own, and the directory layout should be shared. You could do specify absolute paths layouts and partials? Or even better relative to the base path, if defined. Thank you!
Currently you can only specify a directory relative to the views directory:
$view->setPartialsDir('../common/partials/');
$view->setLayoutsDir('../common/layouts/');
Is there a workaround so that the layout directory is outside of views directory?
@thoreon can't you just pass the absolute path to setLayoutsDir()?
hi sjinks, setLayoutsDir() will only set the directory under views directory. I want to have the layouts directory totally independent with the views.