Hi everyone, I have a problem when I have dynagrid with sorting functionality with array to search on it ("implement a search modal that return the value that I search on it") when add
$searchModel2 = new activeSearch();
$searchModel = $searchModel2->search("somthing");
Hi everyone, I have a problem when I have dynagrid with sorting functionality with array to search on it ("implement a search modal that return the value that I search on it") when add $searchModel2 = new activeSearch(); $searchModel = $searchModel2->search("somthing");
and return the value with the render
return $this->render('page', ['searchModel' => $searchModel]);
in the Dynagrid get "Undefined variable: searchModel" and the implementation in the Dyna is 'filterModel' => $searchModel,