$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; } $query->andFilterWhere([ 'termin_id' => $this->termin_id, 'termin_pid' => $this->termin_pid, 'lfr' => $this->lfr, 'rgt' => $this->rgt, 'termin_type_id' => $this->termin_type_id, 'page_id' => $this->page_id, ]); return $dataProvider; } }