$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([ 'id' => $this->id, ]); $query->andFilterWhere(['like', 'translit', $this->translit]) ->andFilterWhere(['like', 'title', $this->title]) ->andFilterWhere(['like', 'body', $this->body]) ->andFilterWhere(['like', 'meta_title', $this->meta_title]) ->andFilterWhere(['like', 'meta_keywords', $this->meta_keywords]) ->andFilterWhere(['like', 'meta_description', $this->meta_description]) ->andFilterWhere(['like', 'seo_text', $this->seo_text]) ->andFilterWhere(['like', 'h1', $this->h1]); return $dataProvider; } }