using ZF 1.7.3 and module/controller/action configuration

The current default routing behavior in Zend Framework is as stated in the
documentation:

"10.5.4. Default routes

Zend_Controller_Router_Rewrite comes preconfigured with a default route,
which will match URIs in the shape of controller/action. Additionally, a
module name may be specified as the first path element, allowing URIs of the
form module/controller/action. Finally, it will also match any additional
parameters appended to the URI by default -
controller/action/var1/value1/var2/value2."

So if I navigate to a module name that does not exist, the router will
automatically look for a controller of the same name, if it finds a
controller with that name it will serve it.  I have two requests:

1.  Zend extends that functionality to controllers and actions.  If I
navigate to a controller name that does not exist, the default router will
automatically look for an action of that same name in the index controller.

This would effectively remove the need to put 'index' (controler) in the
URI.

2.  Being somewhat new to ZF, I would like some guidence on how to extend or
customize the current default router to accomplish this.

David
-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-Routing-tp21834663p21834663.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to