示例#1
0
 /**
  * Creates a new Patientimage model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Patientimage();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'hn' => $model->hn, 'image_name' => $model->image_name]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }