drj201 wrote:
> 
> Hi all,
> 
> Ive been following the method outlined here to add Controller specific
> navigation menus to my layout view:
> 
> http://teethgrinder.co.uk/perm.php?a=Zend-Framework-Menus-Navigation
> 
> Firstly, what is your view on this approach? Adding an actionStack call to
> every controller seems long winded especially if the majority use a
> standard menu i.e. defaultmenuAction in the NavController.
> 
> Also using this method I am encountering a problem with the use of
> _forward() in my actions.
> 
> When calling a _forward from one action to another within the same
> controller the menu action is added to the actionStack twice (once for
> initial init() and then for each forward). How would you propose I stop
> this easily? Is there a way of detecting if the actionStack currently has
> the call to the action in the NavController and thus doesnt add it again?
> Back to my original question... is there a better way entirely?
> 
> Thanks for your help.
> 
> David
> 


Why don't you use a view helper for this task? You can define and pass
controller specific actions in the init() method of the controller and
display them in a view.

Regards,

Goran Juric
http://gogs.info/
-- 
View this message in context: 
http://www.nabble.com/ActionStack-and-_forward%28%29-tp20469986p20487267.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to