Adding a custom CakePHP Route
How can i configure a route connection to handle... /users/{nameofuser_as_param}/{action}.json?limit_as_param=20_as_param=20_as_param=created_at in the routes.php file such that it calls my controller action like... /users/{action}/{nameofuser_as_param}/{limit_as_param}/{offset_as_param}/{order_as_param}.json? Note: Iam using Cakephp 2.X -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp route,
On May 4, 2011, at 21:14, sindhu.13 wrote: 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 So you want to have URLs based on slugs instead of ids. Read about sluggable behavior: http://bakery.cakephp.org/articles/mariano/2007/03/24/sluggable-behavior -- 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
Re: cakephp route,
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
cakephp route,
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