Sunday, March 6, 2011

Having 2 Paginate in view

Hi,

I saw
http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3

But I struggle, as I have this paginate calls in my controller

$this->set('memberlist', $this->paginate($this->Agent->Member,
$options));
and
$this->set('provisions', $this->paginate($this->Agent->Agentprovision,
array('Agentprovision.agent_id'=>$id)));

In the above example they do: echo $this->element('paging',
array('model' => 'User'));

I have no idea, how I can adapt this for my specific problem?
Anyone who had something simular?

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

No comments: