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