How to make my ZF2 module load other layout file for specific controller ?
Consider you have IndexController
and AdminController
in your ZF2 application module and the IndexController
is using layout.phtml but you want to use adminlayout.phtml for AdminController
.
How is it possible?
and don't forget to register your new controller by adding this config in your module config file: