Re: Dynamic routes

2009-10-29 Thread Dr. Loboto
If you do not need $cat in controller: Router::connect( '/(categories|kategorie)/*', array('controller' => 'categories', 'action' => 'view') ); On Oct 29, 5:23 am, kicaj wrote: > Why doesn't work: Router::connect('/:cat/*', array('controller' => > 'categories', 'action' => 'view'), array

Re: Dynamic routes

2009-10-28 Thread Miles J
What are you trying to route to? Router::connect('/:cat/*', array('controller' =>'categories', 'action' => 'view'), array('cat' => 'categories|kategorie')); On Oct 28, 4:23 pm, kicaj wrote: > Why doesn't work: Router::connect('/:cat/*', array('controller' => > 'categories', 'action' => 'view'),

Dynamic routes

2009-10-28 Thread kicaj
Why doesn't work: Router::connect('/:cat/*', array('controller' => 'categories', 'action' => 'view'), array('cat' => '[categories| kategorie]')); ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To p