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.
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:
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/',
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'));