I am getting into CakePHP but I keep struggling with the following
problem:

I have a photo collection and use pagination to order the photos. I
also try to order a list of collections which I can modify, add and
delete.
Both photos and collections are based on rdBloggery.
Because I want to use this for my CMS and I already use for other
modules the Pagination 1.2, I have problems integrating.
The Pagination 1.2 is different than the pagination used in
rdBloggery. I try to change this in the photo blog.

Now comes the problem:
When I call the collection grid, the pagination count the result, but
these are the result of the total number of photos instead of the
collections. How can I change this? Which criteria/params or options
do I have to use?

Example:
<?php
function collections_grid($id=null)
        {
              $criteria=NULL;
              list($order,$limit,$page) = $this->Pagination-
>init($criteria);
              $data = $this->Photo->Collection->findAll($criteria);
              $this->set('data',$data);
        }
?>


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