Im struggling a bit with how to do, and where to put, this little
issue. I expect its obvious and been solved before; but i can't find
it.
I have a forum categories model, and on the index page iv'e got the
usual table of categories, paginated.
My controler looks like this:
function index() {
$this->ForumCategory->recursive = 2;
$this->set('forumCategories', $this->paginate());
}
Id like to have in my view, the latest post to a topic of each
category.
so the models are categories with many topics with many posts.
Is this something i should link up in the model? so the pagination
still works? And if so, how?
Thanks for any guidance,
Will
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment