Hi, In my "Reports" controller, which is just a dummy controller
without any actual database, I'm trying to generate a paginated view
of other models. For example, to generate paginated view of
"Transactions" model I'm doing the following:

$this->loadModel('Transactions');
$this->Transactions-
>bindModel(array('belongsTo'=>array('Item'=>array('className'=>'Item'),'Member'=>array('className'=>'Member'))));
$results = $this->paginate('Transactions',null,array('recursive'=>1));

But this is not giving me associated data from Items and Members. If I
do a

$this->Transactions->find('all',array('recursive'=>1))

I get the associated data, but not paginated. How will I get paginated
view which includes the associated data too?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to