Just starting with CakePHP (and MVC in general), so it all still seems more complicated for me than it actually is, thank you again :)
On Tuesday, March 20, 2012 12:17:54 AM UTC+2, thatsgreat2345 wrote:
I guess you could do a paginate with just a limit of 1 on the ingredients inside the recipes controller--
I would have it as
recipes/view/recipe_id
So you'll do your paginate call and it should grab the first by default
And then just setup your next/previous links in your view using the paginator helper and it should take care of everything
Example clicking next should give you
recipes/view/recipe_id/page:2
And granted your paginate setup is correct it should do everything for you.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment