What if you have 20 different controllers? Do still want to create 20 
routes for each of the controller? How do you add a static page for example:

yoursite.com/eric - dynamic page
yoursite.com/contact - static page

Matt

[EMAIL PROTECTED] wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to