Is there anyway to have the paginate work in an associated model?
Right now i have in a category controller :
/**
* Method to find articles based on category
*/
public function view($category = null) {
if($category)
{
// Find the article
$this->Category->recursive = 2;
$this->set('articles',
$this->Category->findBySlug($category));
}
}
And it finds all articles associated with HABTM.. but how can i
paginate the articles and not the categories?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---