prodigitalson wrote:
>
> Just add another route.. but take care they are you add them in order
> (most general -> most specific):
>
> $default = new Zend_Controller_Router_Route(
> ':lang/:controller/:action/*',
> array('controller'=>'index',
> 'action' => 'index',
> 'module'=>'default',
> 'lang'=>$lang));
>
> $admin = new Zend_Controller_Router_Route(
> 'admin/:controller/:action/*',
> array('controller'=>'index',
> 'action' => 'index',
> 'module'=>'admin',
> ));
>
> $front = Zend_Controller_Front::getInstance();
> $router = $front->getRouter();
> $router->addRoutes ( array('default' => $default, 'admin' =>
> $admin );
> $front->setRouter($router);
>
Thats indeed a better/simpler solution.
--
View this message in context:
http://www.nabble.com/ZF-Custom-Router-tp26052315p26067371.html
Sent from the Zend Framework mailing list archive at Nabble.com.