I'm developing an app and we'd like our url's to be prefixed with a username followed by the normal controller and action. For instance
A non-prefixed url to view one of my photo's might look like: http://server.com/photos/view/steve/3 Instead, we would like to prefix the url with the username, so it would look like: http://server.com/steve/photos/view/3 The username 'steve' would then be passed to the view action of the photos controller as a parameter (or be made available to the controller somehow). Obviously, this should work for any user who registers on the site. I've played with the router but have not been able to get it to work. Any thoughts? -steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
