I am using some custom routes for my site and a couple are conflicting. Is there a way to set them up so both the following routes point to their respective actions.

At the moment these both point point to the 'item-view' action, I was hoping the first one would match http://www.a.com/default/foo/bar/create but instead it is being caught in the second route.

new Zend_Controller_Router_Route('default/foo/bar/create', array('module' => 'default', 'controller' => 'foo', 'action' => 'foo-bar-create')); new Zend_Controller_Router_Route('default/foo/bar/:itemId', array('module' => 'default', 'controller' => 'foo', 'action' => 'foo-bar-view'));

Is there any way to give the first route above a higher prioirty than the second route to solve the problem?

Cheers,

Chris


Deanna Bonds wrote:
Dan Ballance wrote:

Hiya folks,hopefully this will be a simple one. Have been googling like nuts but can't work out where I should place the actual file containing a front controller plugin in a default installation? Heeelp


The Initializer front controller plug-in is in the applications directory. That seems like a logical place to put any others you create.

Reply via email to