HI,

I have a controller called users where I do all my user actions.
Login,logout,profile,view.. etc

I want to be able to modify the routes so that people can go to
mysite.com/login rather than mysite.com/users/login etc for all
actions in the users controller.

I am using cakePHP 1.2 and I have the following in the routes.php
file:

Router::connect('/users/:action/*', array('controller' => 'users'));
Router::connect('/*', array('controller' => 'users', 'action' =>
'login'));

This works for the first action, so I can go to mysite.com/login and
it resolves fine. However when I add another

action in the same manner to the routes it doesn't resolve correctly
and it just keeps loading the first action ("login").

So I can't go to mysite.com/profile for instance.

Any help would be appreciated, as I have been stuck for a little while
now trying to find a tutorial.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to