/** * Lists all Comercios models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => Comercios::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }