In that case one must update the doc:
*****
The following route more-or-less mimics the Module route behavior: 
$route = new Zend_Controller_Router_Route(
    ':module/:controller/:action/*',
    array('module' => 'default')
);
$router->addRoute('default', $route); 
*****
this will not match /services/web-development (using the default module) for
example
:module will be services and :controller will be web-development



DASPRiD wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> debussy007 wrote on 12.08.2009 21:47:
>> I would have had less routes if the default values were working like it
>> is
>> suggested in the manual.
>> E.g.
>> Zend_Controller_Router_Route(':lang/:controller/:pageid/*',
>> array('controller' => 'index'), array('lang' => 'fr|nl|en'));
>> doesn't catch an URL like:
>> /fr/services-webmaster (I expected that :controller getting the default
>> value and :pageid getting services-webmaster)
> 
> No, controller is "services-webmaster" and pageid is missing, so the
> route cannot match. All your 9 routes also seem to overlap in several
> parts, so they are not unique, which makes them kinda pointless.
> 
> - --
> ...................................
> :  ___   _   ___ ___ ___ _ ___    :
> : |   \ /_\ / __| _ \ _ (_)   \   :
> : | |) / _ \\__ \  _/   / | |) |  :
> : |___/_/:\_\___/_| |_|_\_|___/   :
> :........:........................:
> : Web    : http://www.dasprids.de :
> : E-mail : [email protected]       :
> : Jabber : [email protected]     :
> : ICQ    : 105677955              :
> :........:........................:
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkqDMPIACgkQ0HfT5Ws789B89QCgj5rFX8G6pozTdH6ScWKdk7EK
> X98AnAqfcWE4Sl5diHIe/v+aWtvDe3ZU
> =Jl1e
> -----END PGP SIGNATURE-----
> 
> 

-- 
View this message in context: 
http://www.nabble.com/8-custom-routers-...-should-I-worry-about-performance---tp24940719p24950941.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to