How to swap Login for Logout after a user logs in using Zend_Navigation?

Posted by jwhat on Stack Overflow See other posts from Stack Overflow or by jwhat
Published on 2010-03-09T02:18:03Z Indexed on 2010/03/09 2:21 UTC
Read the original article Hit count: 265

I'm using an XML config file to populate my navigation using Zend_Navigation.

I have Login and Logout in the navigation, but obviously I should only display the 1 action that makes sense.

I believe I can do something like $navigation->removePage() but... How do I get the $navigation variable in a Controller after it was previously created in Bootstrap.php?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-navigation