I believe you might have run into the chained route bug. See
http://framework.zend.com/issues/browse/ZF-6654 for details and a fix.



Babant wrote:
> 
> Hi. I'm having trouble with a route chain when trying to use '*' wildcard.
> For several hours, I've been trying to find a solution but with no luck.
> 
> I have a Hostname route and a simple route (which both work just fine on
> their own).
> 
>     $adminHostnameRoute = new Zend_Controller_Router_Route_Hostname(
>         'admin.somedomain.cz',
>         array(
>             'module'     => 'administration',
>         )
>     );
>     $adminPathRoute = new Zend_Controller_Router_Route(
>         ':controller/:action/*',
>         array(
>             'controller' => 'index',
>             'action'     => 'index'
>         )
>     );
>     $routes->addRoute('admin',
> $adminHostnameRoute->chain($adminPathRoute));
> 
> $adminPathRoute should match URLs like
> :controller/:action/var1/value1/var2/value2 .
> 
> URL 'admin.somedomain.cz' works fine. Index/index is called.
> URL 'admin.somedomain.cz/xxx/yyy/' works fine. XXXController and YYYAction
> is called.
> However URL 'admin.somedomain.cz/xxx/yyy/someVar/someValue/' won't match
> the route. Default route is used instead.
> 
> It seems like the * wildcard is ignored. Or am I missing something? After
> several hours of searching and trial and error, I really have no idea what
> is wrong.
> So please, if there is someone, who could point me in the right direction,
> I would be hugely grateful.
> 

-- 
View this message in context: 
http://n4.nabble.com/Route-chain-with-wildcard-not-matching-some-URLs-tp976610p979305.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to