[Catalyst] Menu navigation implementation
Barry Hoggard
bhoggard at gmail.com
Mon Feb 11 23:09:39 GMT 2008
Jennifer Ahn wrote:
> hi everybody!
>
> I'm trying to implement a menu on a left navigation column in my web
> application and i would like to know how others have approach a similar
> topic.
>
> My controller object contains the menu items. How would my layout
> template, which is part of a wrapper, access this array of menu items?
> My controller class has many methods and I wouldn't want each method to
> have to keep a stash of the menu items.
> Thanks !
I usually handle this by having an end method in a base controller class
that sticks the proper menu data into the stash.
Barry
More information about the Catalyst
mailing list