Routing oddities

2009-05-18 Thread doze
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.

Re: Routing oddities

2009-05-18 Thread brian
On Mon, May 18, 2009 at 7:40 PM, doze doze...@gmail.com wrote: 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:    

Re: Routing oddities

2009-05-18 Thread doze
I have done more tests with these and got little bit further, but still having issues.. Here's the current state: With these routes: Router::connect('/:company/:controller/:action/', array('controller' = 'home', 'action' = 'index')); Router::connect('/:company/:controller/',

Re: Routing oddities

2009-05-18 Thread doze
Got it to work finally!! These are the final routes: Router::connect('/:company/:controller/:action', array('controller' = 'home', 'action' = 'index')); Router::connect('/:company/:controller/:action/*', array('controller' = 'home', 'action' = 'index'));