$query, ]); $this->load($params); /*if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; }*/ // grid filtering conditions $query->andFilterWhere([ 'brand_id' => $this->brand_id, 'brand_name_id' => $this->brand_name_id, ]); $query->andFilterWhere(['like', 'alias', $this->alias]) ->andFilterWhere(['like', 'image', $this->image]) ->andFilterWhere(['like', 'meta_title', $this->meta_title]) ->andFilterWhere(['like', 'meta_desc', $this->meta_desc]) ->andFilterWhere(['like', 'meta_robots', $this->meta_robots]) ->andFilterWhere(['like', 'seo_text', $this->seo_text]); return $dataProvider; } }