> <html><head></head><body>
> <?= $this->render('menu.phtml') ?>
> ... content ....
> </body></html>
I use diffrent controller for menu. You can use alo plugin.
In my MenuController I set:
$this->_helper->viewRenderer->setResponseSegment('menu');
And in layout:
<?= $this->layout()->menu ?>
Diffrent actions in MenuController render diffrent menus.
In other controllers in application you can use:
$this->_helper->actionStack('index', 'menu');
regards,
--
Paweł Chuchmała
pawel.chuchmala at gmail dot com
没有评论:
发表评论