David,

I think you need to disavow the assumptions in terms of how things are
routed and write your own routes for things you need. This will help
reduce confusion on how to specify requests from the URL.
Documentation on how to do this can be found on the same page:

http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes

You can make it cleaner by defining routes in an XML config file. But,
the short of it is continue reading and you'll get a better idea of
how to implement routes in ZF.
--
Chris Weldon


On Wed, Feb 4, 2009 at 10:56 AM, dbroderick
<[email protected]> wrote:
>
> 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.
>
>



-- 
Christopher Weldon
http://chrisweldon.net
[email protected]

Reply via email to