/**
  * Lists all Iniciativa models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Iniciativa::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
 /**
  * Displays a single Diputado model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $dataProvider = new ActiveDataProvider(['query' => Iniciativa::find()]);
     // $dataProvider = new Iniciativa();
     return $this->render('view', ['model' => $this->findModel($id), 'dataProvider' => $dataProvider]);
 }
 public function actionIndex()
 {
     $date = date('Y-m-d');
     $dataProvider = new ActiveDataProvider(['query' => Iniciativa::find()->where(['>', 'fecha', $date])->limit(10)->orderBy('fecha ASC')]);
     return $this->render('index', ['dataProvider' => $dataProvider, 'date' => $date]);
 }