Пытается использовать плагин поиска от friendsofcake в моем плагине пользователей cakedc.CakePHP 3.x использовать плагин в плагине
Я использовал Everthing, как и раньше (в моих обычных пользователей/index.ctp он работал) и только что добавили свой собственный index.ctp к контроллеру пользователей cakedc, например, так:
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"
Любые идеи?