1

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?

blackbishop
  • 30,945
  • 11
  • 55
  • 76
srayner
  • 1,799
  • 4
  • 23
  • 39

0 Answers0