How can I inject additional child view into layout, that modules can override?

43 views Asked by At

In my layout I would like an additional child view to render a menu. So in my layout I have;

<?php echo $this->menu; ?>

Then in my config under the view manager template_map key I have;

'navigation/menu' => __DIR__ . '/../view/application/navigation/menu.phtml',

How can I create an event listener that will inject my view template into the layout. And how could modules override this to use their own view template?

0

There are 0 answers