/** * Lists all Action models. * @return mixed */ public function actionIndex() { $model = new Data(); if ($model->load(Yii::$app->request->post())) { } return $this->render('index', ['model' => $model, 'devices' => $model->getDevicesAll(), 'actions' => $model->getActions(), 'chart_types' => $model->getChartTypes(), 'chart_date' => $model->getChartDate(), 'chart_interval' => $model->getChartInterval(), 'chart_data' => $model->getChartData()]); }