Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-13 Thread Peter Warnock
On Thu, Aug 13, 2009 at 1:32 AM, debussy007 wrote: > > 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') > ); > $ro

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-13 Thread debussy007
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 /serv

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread Ben Scholzen 'DASPRiD'
-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('

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread debussy007
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 :con

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread Daniel Latter
Soz, didn't reply all On 12 Aug 2009, at 19:41, Daniel Latter wrote: Don't worry about performance until it becomes an issue, my 2p On 12 Aug 2009, at 18:52, debussy007 wrote: My CMS allows the user to define custom URLs or to leave the default ZF URL system for a specific page. Also

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread debussy007
Yes, routes like e.g. $route = new MyZend_Router_CustomUrlRoute( ':lang/:pageid/*', array(), array('lang' => 'fr|nl|en') ); $router->addRoute('custom_9', $route); jasonistaken wrote: > > I assume you mean routes, not routers? Correct? > > On 12/08/2009 9:59 AM, debu

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread Jason Webster
I assume you mean routes, not routers? Correct? On 12/08/2009 9:59 AM, debussy007 wrote: Hi, I defined 8 custom routers in my bootstrap, including the default router that makes it 9 routers. For every request, it will check the routers one by one as long as one didn't match. Thus I wondered if

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread debussy007
My CMS allows the user to define custom URLs or to leave the default ZF URL system for a specific page. Also the URL usually includes the language /fr/, /en/, etc. and if there is none, it's the default locale that will be taken. -> custom url 1. ':pageid/*' (user rewrites the whole url module/

Re: [fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 debussy007 wrote on 12.08.2009 18:59: > Hi, > > I defined 8 custom routers in my bootstrap, including the default router > that makes it 9 routers. > For every request, it will check the routers one by one as long as one > didn't match. Thus I wondere

[fw-general] 8 custom routers ... should I worry about performance ?

2009-08-12 Thread debussy007
Hi, I defined 8 custom routers in my bootstrap, including the default router that makes it 9 routers. For every request, it will check the routers one by one as long as one didn't match. Thus I wondered if I have to worry about performances for e.g. the URLs matching the last checked route or if