#6173: [TEST][FIX]Admin routing breaks reverse routing --------------------------+------------------------------------------------- Reporter: phally | Owner: nate Type: Bug | Status: reopened Priority: High | Milestone: 1.2.x.x Component: Core Libs | Version: 1.2 Final Severity: Normal | Resolution: Keywords: | Php_version: n/a Cake_version: | --------------------------+------------------------------------------------- Changes (by phally):
* status: closed => reopened * resolution: worksforme => Comment: I shall explain the background a bit. It was used for language switching in an element for the layout. So it appears on every page, therefor 'action' could be different on every request, that is why 'index' wasn't hardcoded. The 'action' passed from the controller is in this case 'admin_index' and not 'index' as you have defined in the test case. That is why your test case passes and mine doesn't. As a work around I override Helper::url and Controller::redirect. But it seems this best fits in Router::url(). Hope it helps to clarify the test case. Thanks for taking the time to look at it. -- Ticket URL: <https://trac.cakephp.org/ticket/6173#comment:5> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---