我正在使用来自 cakeDC ( https://github.com/CakeDC/search ) 的 searchplugin 和 cakePHP 2.3.0。该插件工作正常。我在这样的索引操作中有一点错误。感谢那。
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'));
}
问题是,我该如何解决?所以我发现了一种简单易行的方法。