If you already have users_controller. Define new method view.
in routes you will need something like:
$Route->connect('/:username', array('controller' => 'users', 'action'
=> 'view'));
and than in your view method, you can get username from url, if
someone go to htt://www.yoursite.com/eric:
$username = $this->params['username'];
preatty cool and easy! :)
That's it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---