Router::connect('/users/:username',
array('controller'=>'users','action'=>'index'),array('pass'=>array('username')));

This routes /users/bobcostas to the function index( $username ) method
of the controller, with the username passed as a parameter.

Router::connect('/users/:username/:action',
array('controller'=>'users'),array('pass'=>array('username')));

This does the same as the above, but allows the action to be after the
username. For example; /users/bobcostas/edit would call function
edit( $username ) in the UsersController.

--~--~---------~--~----~------------~-------~--~----~
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