History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-61
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jayson Minard
Reporter: Jayson Minard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

RewriteRouter does not correctly handle the default action

Created: 20/Jun/06 11:28 AM   Updated: 05/Jul/07 02:44 PM
Component/s: Zend_Controller
Affects Version/s: None
Fix Version/s: 0.1.4

Time Tracking:
Not Specified


 Description  « Hide
"If the foreach fails to locate a route then $controller, $action and $params
will be unset and will throw errors."

It was introduced by commenting out a default route in the process of moving
the class out of the proposals to the incubator. The simple fix is to add
defaults for those variables just before the foreach loop:

$controller = 'index';
$action = 'noRoute';

And/or setting a sufficient default - like that one for instance:

$router->addRoute('default',
':controller/:action', array('action' => 'index'));

This way we'll make it compatible with current router.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.