2008年9月9日星期二

Re: [fw-mvc] Controller Menus

On Tue, Sep 9, 2008 at 13:59, monk.e.boy <john.glazebrook@guava.com> wrote:
> <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

没有评论: