$query, 'pagination' => [ 'pageSize' => 70 ], 'sort' => [ 'defaultOrder' => [ 'id' => SORT_DESC, ], 'attributes' => ['id'], ], ]); $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', 'message', $this->message]) ->andFilterWhere(['like', 'ip_address', $this->ip_address]) ->andFilterWhere(['like', 'user_agent', $this->user_agent]) ->andFilterWhere(['like', 'created_at', $this->created_at]) ->andFilterWhere(['like', 'fakename', $this->fakename]); return $dataProvider; } }