tags:

views:

21

answers:

1

hi i am using cakephp for my project in this here i get the result from the join query but by this i wanna make pagination on this result by using my way its not possible. so please help me. thanks in advance. my code is following.

$id= $this->Session->read('id'); $this->layout='ui_defualt';

$options['joins'] = array(array('table' => 'fj_bounty_watches','conditions' => array('fj_bounty_watches.nBountyID = FjBounty.id')));

$options['conditions'] = array('fj_bounty_watches.nHeadHunterID' =>$id);

$watchedbounty = $this->FjBounty->find('all', $options);

by this i get the result as array but i din make pagination on it so help

A: 

You should get paginated results if you use the correct setup:

http://book.cakephp.org/view/1232/Controller-Setup

stefan