/**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Alimentacion::find();
     $dataProvider = new ActiveDataProvider(['query' => $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(['id_ali' => $this->id_ali, '_____recibio_lactancia_materna_' => $this->_____recibio_lactancia_materna_, '_____recibio_supl__hierro__chis' => $this->_____recibio_supl__hierro__chis, '_____si_es_gestante__recibio_su' => $this->_____si_es_gestante__recibio_su, '_____estuvo_al_dia_con_suplemen' => $this->_____estuvo_al_dia_con_suplemen, '_____no_recibio_algun_alimento_' => $this->_____no_recibio_algun_alimento_, '_____recibio_3_o_mas_comidas_es' => $this->_____recibio_3_o_mas_comidas_es, 'pro_ali' => $this->pro_ali]);
     return $dataProvider;
 }
 /**
  * Finds the Alimentacion model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Alimentacion the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Alimentacion::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }