Currently in your controller you are searching with the findById i guess. U simply change that to findByTitle and use Str_Replace to change spaces into underscores.
Hope that helps you! On 5 mei, 04:14, "sindhu.13" <bsind...@gmail.com> wrote: > helo, i'm newbie in cakephp... > my problem is, > I want to view my news in view.ctp base on "title" not "id", > so if by id -> "newsses/view/3" if id is 3 > but i want make like -> "newsses/view/news_title" if title is "News > Title" > > so how do i make it.?. > route, controller and view action > > thank's -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php