我在這裏使用CakePHP作爲我的項目在這裏,我從加入查詢中得到結果,但是由於我想通過使用我的方式對此結果進行分頁,這是不可能的。如何在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);
利用這一點,我得到的結果作爲數組。它不執行分頁。
我怎樣才能得到這個結果的分頁?