Would like http://websites.com/users/username1 URL structure
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your app/config/routes.php file you could add:
Router::connect('/users/*', array('controller' => 'users', 'action' => 'index'));This would route all requests to /users/ to the index action of the users controller. If you want to use a different action, just replace ‘index’ with the action you prefer to use.
More info is here:
http://book.cakephp.org/view/46/Routes-Configuration