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