have a look at http://bakery.cakephp.org/articles/view/sluggable-behavior
2009/3/5 park <park....@gmail.com> > > You either define a '/fields/view/science' route (hard coded) in /app/ > config/route.php, > Or pass 'science' as an argument an do a query in db. > > On Mar 5, 8:23 am, MaNuM <manumohed...@gmail.com> wrote: > > Hi everybody. I haven't worked for a long time with CakePHP and I > > can't find a solution for this: > > > > In my application a I have now url's like this one: > > > > http://localhost/cake/ocwdev/fields/view/17 > > > > 17 is the id refered to a field called "Science" for example. I would > > like the url to be like this one: > > > > http://localhost/cake/ocwdev/fields/view/Science > > > > Is this possible without passing "Science" as an argument? I think it > > is not a good idea to search by 'name' instead of by 'id' in the > > controller to see the contents of the field.. > > > > Thank's in advanced. > > > > Regards. > > > --~--~---------~--~----~------------~-------~--~----~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---