Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-22 Thread Ralf Eggert
Hi Matthew, This looks like a bug. Can you post an issue, and include the route you're defining as part of it? I'll see if either myself or Ben can track it down. Done: http://framework.zend.com/issues/browse/ZF2-486 I found out, that deleting the default for the locale does the job. Maybe

[fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Marco Pivetta
I think you can use a wildcard route ( https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Router/Http/Wildcard.php) as a child route of `/lang/module/controller/action/id/`. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 August 2012 07:01, cstrosser

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Ralf Eggert
Hi Marco, I think you can use a wildcard route ( https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Router/Http/Wildcard.php) as a child route of `/lang/module/controller/action/id/`. thanks for the hint, do you have an example? Or did I use it right here:

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Marco Pivetta
I think the route cannot be matched in such case, since it hasn't an ending delimiter. Your parts should not be optional for such a route to work. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 August 2012 12:17, Ralf Eggert r.egg...@travello.de wrote: Hi Marco,

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Ralf Eggert
Hi Marco, I got an solution now. This is my route in /module/Application/config/module.config.php: 'application' = array( 'type'= 'segment', 'options' = array( 'route'=

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Ralf Eggert
Hi again, The only problem I have is connected to the Url() View Helper. This call $this-url('application', array('lang' = 'de', 'action'='add', 'controller' = 'user')) the same issue occurs with the Url controller plugin. Somehow the 'lang' segment is

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Matthew Weier O'Phinney
-- Ralf Eggert r.egg...@travello.de wrote (on Tuesday, 21 August 2012, 11:33 PM +0200): The only problem I have is connected to the Url() View Helper. This call $this-url('application', array('lang' = 'de', 'action'='add', 'controller' = 'user'))