Hello, I'm having some problems with my routing, let's go straight to business:
When accessing this url: http://localhost/somecompany/home 1. With route setup: Router::connect('/:company/:controller/*'); Result: Works ok, get's routed to /app/controllers/home_controller.php 2. With route setup: Router::connect('/:company/:controller/*', array(), array ('company' => '[A-Z][a-z][0-9]')); Result: Fails, get's routed to /app/controllers/somecompany_controller.php Question: Why it fails when I set regexp check to the company parameter? When accessing this url: http://localhost/somecompany/ 1. With route setup: Router::connect('/:company/*', array('controller' => 'home')); Result: Works ok, get's routed to /app/controllers/home_controller.php 2. With route setup: Router::connect('/:company/:controller/*'); Router::connect('/:company/*', array('controller' => 'home')); Result: Fails, get's routed to /app/controllers/controller.php Question: Why it doesn't take the second route and find to home controller? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---