Are you sure it works? Constraint `'par' => 'id',` doesn't look right to me. Marco Pivetta
http://twitter.com/Ocramius http://marco-pivetta.com On 26 September 2012 08:15, Distrust [via Zend Framework Community] < ml-node+s634137n4657132...@n4.nabble.com> wrote: > 'addform' => array( > 'type' => 'Segment', > 'options' => array( > 'route' => '/application/test/add[/:par[/:val]]', > 'constrains' => array( > 'par' => 'id', > 'val' => '[0-9]+' > ), > 'defaults' => array( > '__NAMESPACE__' => 'Application\Controller', > 'controller' => 'Test', > 'action' => 'add' > ), > ) > ), > > Why this works for all following URLs? > http://zend2.localhost/application/test/add/44/99 > http://zend2.localhost/application/test/add/abc123/123 > > I think that this should work only for this URL: > http://zend2.localhost/application/test/add/id/123 > > application - my module > test - my controller > add - my action > > It is a bug or I miss something? > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://zend-framework-community.634137.n4.nabble.com/ZF2-Weird-routing-problem-tp4657132.html > To unsubscribe from Zend Framework Community, click > here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4> > . > NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Re-ZF2-Weird-routing-problem-tp4657136.html Sent from the Zend Framework mailing list archive at Nabble.com.