示例#1
0
 public function actionCreate()
 {
     $model = new Izmer();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(Proc::GetPreviousURLBreadcrumbsFromSession());
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }