ZF-6824: if the user is not using a route paramater named action active pages dont register correctly.

Issue Type: Bug Created: 2009-05-27T05:54:17.000+0000 Last Updated: 2009-09-19T08:13:46.000+0000 Status: Resolved Fix version(s): Reporter: Josh Ribakoff (jshpro2) Assignee: Robin Skoglund (robinsk) Tags: - Zend_Navigation

Related issues: - ZF-6823



If you define a route with a module + controller, zend_navigation_page_mvc cant recognize it as active. For instance if you create a route with module Foo and controller Bar, and then create a page with that module + controller it won't register in active breadcrumbs. If I do specify the default action parameter of index then it does work correctly. Trivial but a user may not be using a route param called action


Posted by Robin Skoglund (robinsk) on 2009-05-27T06:01:14.000+0000

This is a known issue with the routing subsystem, and is documented in the manual:…

It will be fixed in ZF 2.0 :)

Posted by Robin Skoglund (robinsk) on 2009-05-27T06:02:13.000+0000

Related to the routing/navigation.

Posted by Josh Ribakoff (jshpro2) on 2009-05-27T06:07:51.000+0000

Yeah I saw that, if the module + controller match, that should be 2/2 matched paramaters though. If there is no paramater named "action" for this route. Not sure if thats the same thing

Posted by Robin Skoglund (robinsk) on 2009-09-19T07:02:12.000+0000

Routing in ZF always resolves to a module, controller, and action. If a page/route does not contain any information on 'action', Zend_Navigation_Page_Mvc will not make any assumptions. This is a strict approach, used to prevent false positives (which would occur more frequently than the case is in this issue).

Posted by Josh Ribakoff (jshpro2) on 2009-09-19T08:13:37.000+0000

Hey Robin,

I meant more if the user had overridden the routing subsystem and their paradigm did not contain controller module or action ( for instance the Magento codebase completely overrode that subsystem ). I agree it may not be within the scope of the component though, thanks for following up.


Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.