public function actionTest1() { $model = new TbCriterial(); $model = TbCriterial::find()->one(); if ($model) { echo $model->getAttribute('ctr_criterial'); //var_dump($model); } }
public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => TbCriterial::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }