添加后:
public function index()
{
$this->paginate['User']['conditions'] = array('User.role' => 'admin');
$this->set('users', $this->paginate());
}
我收到了这个:
那是什么意思?它做了什么?顺便说一句,我从不对JsHelper做任何事情。严格(2048):JsHelper :: value()的声明应该是兼容的 with Helper :: value($ options = Array,$ field = NULL,$ key ='value') [CORE / Cake / View / Helper / JsHelper.php,第34行]
答案 0 :(得分:1)
我解决了它:
将PHP版本从5.4.10
更改为5.2.17