What I am trying to achieve is to use be able to to use views dir from the current module, and set the layout from another. Ity seems that this is now possible in 2.1.x : https://github.com/phalcon/cphalcon/commit/276545f6ece8ac6583ff07afa674080b4ce57ac9 but for me it is not working.
FrontendModule Views layout.volt
DemoModule Views index index.volt (i need this file to extend layout.volt from FrontendModule)
I set the view service in DemoModule with this:
$view->setViewsDir(PHAT_TO_VIEWS_FROM_DEMO_MODULE); $view->setLayoutsDir(PHAT_TO_LAYOUT_FROM FRONTEND_MODULE);
But, "extend" is searching for layout.volt in views dir, ignoring layouts dir.
Any ideas about how can I make this work ?
Phalcon 2.1.x (build today from 2.1.x branch)