내 cakedc 사용자 플러그인의 friendsofcake에서 검색 플러그인을 사용하려고합니다.CakePHP 3.x 플러그인에서 플러그인 사용
나는 (이 일 index.ctp/내 일반 사용자에) 예전처럼 모든게을 사용하고 단지의 cakedc 사용자 컨트롤러에 내 사용자 지정 index.ctp를 추가 그래서 같은 :
public function initialize()
{
parent::initialize();
$this->loadComponent('Search.Prg', [
'actions' => ['index']
]);
}
public function index()
{
$this->viewBuilder()->layout('backend');
$query = $this->Users
// Use the plugins 'search' custom finder and pass in the
// processed query params
->find('search', $this->Users->filterParams($this->request->query))
// You can add extra things to the query if you need to
->contain(['Skills'])
->where(['firstname IS NOT' => null]);
$this->set('users', $this->paginate($query));
}
하지만이 무엇입니까 오류
알 수없는 방법 "filterParams"
어떤 아이디어가?