Re: Pagination with recursion while using loadModel
have you tried
var $uses = array('Transaction');
PS: why is your model Transactions??? and not Transaction?
On 19 Mrz., 07:26, "ashok.b" <email2...@gmail.com> wrote:
> 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'),'Mem ber'=>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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home