Example #1
0
 /**
  * ACTION CREATE note | $id=PrimaryKey -> TRIGER FROM VIEW  -ptr.nov-
  */
 public function actionCreate()
 {
     $model = new Modulhrd();
     if ($model->load(Yii::$app->request->post())) {
         if ($model->validate()) {
             if ($model->save()) {
                 return $this->redirect(['view', 'id' => $model->MDL_ID]);
             }
         }
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }