我使用cakeDCP(https://github.com/CakeDC/search)與cakePHP 2.3.0的searchplugin。該插件工作正常。我在這樣的索引操作中遇到了一點問題。感謝那。如何解決分頁 - cakePHP與cakeDC錯誤searchplugin
Indirect modification of overloaded property AtlasController::$paginate has no effect [APP\Controller\AtlasController.php, line 47]
我的索引行動
public function index() {
$this->Prg->commonProcess();
$this->paginate['conditions'] = $this->Atla->parseCriteria($this->passedArgs);
$this->Atla->recursive = 0;
$this->set('atlas', $this->paginate());
$this->set('_serialize',array('atlas'));
}
的問題是,我該如何解決呢?所以我發現了一種如此簡單和容易的方式。