I am new to ZF 2 and just trying to render generic layout outside a module's view directory.
At the moment ,i have a module "categories" and in "Categories\view\generic\" ,i have splitted all common layout elements (i.e header(contains menus etc) ,footer,head (contains css/javascripts)) so that i could use them for other modules.See screen shot for clarification:
Instead of creating same layout(header,footer,menus) for each and every module again and again ,i want to make these layout /views accessible for all modules.(e.g Users,categories modules should have same footer,header all the time). My question is :
1- As a best practice, in my case Where should i place my generic layout files to make them accessible for all modules within a project?In general,generic layout shouldn't reside within a specific module's view directory.
2-Where and What changes i would need to make to my configuration files to make them work?
I have tried to play with Evan's EdpModuleLayout
(https://github.com/EvanDotPro/EdpModuleLayouts/)
and also tried
" Set a generic layout for all modules in Zend framework 2 "
But couldn't succeed.I would appreciate if anyone could guide me in this regard. Thanks