BTW, this is what I have in my Categories controller:

      function show($id){
        $this->paginate = array(
        'contain' => array(
            'Thing' => array(
                'fields' => array('id','name','created'),
                'order' => 'Thing.created DESC'
                )
            ),
        'conditions' => array('Category.id' => $id),
        'limit' => 2
        );
        $this->set('things',$this->paginate());
      }

when I use debug($things) i get the following:

Array
(
    [0] => Array
        (
            [Category] => Array
                (
                    [id] => 1
                    [name] => Test
                    [description] =>
                    [parent_id] => 0
                )

            [Thing] => Array
                (
                    [0] => Array
                        (
                            [id] => 23
                            [name] => Milk
                            [created] => 2009-10-07 17:53:51
                            [CategoriesThing] => Array
                                (
                                    [id] => 23
                                    [thing_id] => 23
                                    [category_id] => 1
                                )

                        )

                    [1] => Array
                        (
                            [id] => 22
                            [use_title] => Eggs
                            [created] => 2009-10-07 11:17:49
                            [CategoriesThing] => Array
                                (
                                    [id] => 22
                                    [thing_id] => 22
                                    [category_id] => 1
                                )

                        )...
As you can see, the array has only one main row and it's paginating
one array item. I just want the pagination for the Things, not the
category itself.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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