我在这里为我的项目使用 CakePHP,我从连接查询中得到结果,但是我想用我的方式对这个结果进行分页,这是不可能的。
这是我的代码:
$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);
使用它,我得到一个数组的结果。它不会对其执行分页。
我怎样才能得到这个结果的分页?