Paginate takes, as the second parameter, any conditions you want.
This paginates all users that are flagged (have had others report
them).

function flagged()
{
    $this->User->recursive = 0;
    $this->set('users', $this->paginate(null,'User.flagged <>
\'0\''));
}




On Apr 1, 11:17 am, bob <[EMAIL PROTECTED]> wrote:
> using pagination in cake 1.2, how do you paginate a subset of data in a
> model?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to