I would not recommend putting at the root of the URL, as this would
cause conflicts with other controllers. Like euromark said, its best
to place it in a "users" root.

Ive done the same thing on one of my projects here: 
http://gamesync.com/user/gearvOsh
It can be navigated to show URLs like http://gamesync.com/user/gearvOsh/friends,
http://gamesync.com/user/gearvOsh/comments, etc.

If you want to go with that approach, I can show you the routing.

On Jan 7, 10:38 pm, Walther <[email protected]> wrote:
> You can do exactly what you want using custom routing (Check the
> cookbook).
>
> But, as euromark pointed out, you'll need to ensure that users can't
> register with your existing controller names, and that you have some
> filtering in your route to make sure that your other controllers still
> work.
>
> On Jan 7, 3:19 pm, rahulb <[email protected]> wrote:
>
> > Hello,
> >           I want to know whether , there is any way by which I can
> > change the routing mechanism of cakephp.
> > For example,
> >   If i want to change my routing mechanism in such a way that i can
> > manipulate urls like these :
> >      http://my.website.com/[username]/profile
> > Where the [username] will be the name of the user and every new user
> > who registers with my site , should be able to access his profile in
> > the manner given above.
>
> > Is there a way by which this can be achieved.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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