Saturday, December 24, 2011

Paging with paginator - is that the right way?

Hello everbody.

I have 3 Tables:
- users [id; username; password]
- news [id; user_id; title; comment; created; modified;
news_comment_count]
- news_comment [id; news_id; username; title; comment; created;
modified; active]

news hasMany news_comment
news belongsTo user
news_comment belongsTo news counterCache true; counterScope =>
NewsComment 1

Now i want to view news with id 2 but i want to show max 20
news_comment.

Is there a way to use paginate?

Kind Regards
Steffen

--
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: