Search code examples
phpzend-frameworkzend-navigation

Finding if the current page is in a Zend Navigation object


I have more than one Zend_Navigation object in my application. I want to do a test to find out which object holds the page I'm currently on. I didn't see methods for doing that in the documentation. Can this be accomplished? How?

Thanks!


Solution

  • I ended up using the findById() function after using some logic very specific to my implementation to determine which navigation object applied to the current request.