You should be able to do something like:

Router::connect('/:username/:controller/:action/*', array(), 
array('username' => '[a-z0-9]*'))

Read through this: http://book.cakephp.org/view/542/Defining-Routes
The most relevant examples are down the bottom, but work your way from 
the top, and try some similar routing examples that are relevant to your 
particular app.

Best fo luck, and be sure to let us know how you go.

Cheers,
Graham



BeroFX wrote:
> Hi guys!
>
> Imagine you have a standard social network with users who can have
> blogs, pictures and videos.
>
> I need to setup my routes like this:
>
> http://www.mysite.com/michael                   --> this is like /
> users/view/123
> http://www.mysite.com/michael/videos/123   --> this would show
> michaels video number 123
> http://www.mysite.com/michael/pictures/      --> this would be like
> michaels /pictures/index
>
> Any suggestions?
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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