// First way:
var $paginate = array('conditions' => array('active' => 1));
// Second way:
$data = $this->paginate(array('active' => 1));
On Jan 25, 3:02 pm, "Jonathon Davis" <[EMAIL PROTECTED]> wrote:
> I have a question about paginate()... Is there any way to add
> conditions to fetching and displaying results? Let's say I had a posts
> MVC and I wanted to paginate only posts that have a certain category
> assigned to them. How would I do this? Can I achieve this with the
> built-in function or would I have to create my own pagination for this?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---