public function search($params) { $query = GlHeaderModel::find(); $dataProvider = new ActiveDataProvider(['query' => $query]); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere(['id_gl' => $this->id_gl, 'id_branch' => $this->id_branch, 'id_periode' => $this->id_periode, 'type_reff' => $this->type_reff, 'id_reff' => $this->id_reff, 'status' => $this->status, 'create_by' => $this->create_by, 'update_by' => $this->update_by]); $query->andFilterWhere(['like', 'gl_date', $this->gl_date])->andFilterWhere(['like', 'gl_num', $this->gl_num])->andFilterWhere(['like', 'gl_memo', $this->gl_memo])->andFilterWhere(['like', 'description', $this->description])->andFilterWhere(['like', 'create_date', $this->create_date])->andFilterWhere(['like', 'update_date', $this->update_date]); return $dataProvider; }