zend 2: Automatically inject a template for all actions of a module without modifying site wide configuration
问题 I am using the Zend skeleton application. I want to have a sub menu bar (via a template) injected underneath the default site wide menu bar, but I don't want to modify the site wide app settings, I'd like to just have it in the module. Looking at examples it seems I would have to manually inject the menu bar template in each of my controller's actions and in every template where I want it to appear like this: public function indexAction() { $view = new ViewModel(); $subNavView = new ViewModel