On Sun, Mar 13, 2011 at 8:33 AM, Özgür Demir <[email protected]> wrote: > Hi there, > > I have a routing question. My website should display content depending > on a username. I can achieve this using something like: > > www.mysite.com/controller/action/username:peter > > i can then just show all information specific to user: peter. > however this is quite complex to remember for the user. Many other > sites do something like this: > > www.mysite.com/peter/controller/action/ > > how can i achieve this with cake routing. > Thanks for helping
Have a look at this article, which explains exactly that. http://bakery.cakephp.org/articles/Frank/2009/11/02/cakephp-s-routing-explained -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
