diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 3bcd122..0dbfde4 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -97,22 +97,6 @@ ]; } - /** - * Displays a single Order model. - * - * @param integer $id - * - * @return mixed - */ - public function actionView($id) - { - return $this->render( - 'view', - [ - 'model' => $this->findModel($id), - ] - ); - } /** * Creates a new Order model. @@ -148,8 +132,7 @@ return $this->redirect( [ - 'view', - 'id' => $model->id, + 'index', ] ); } else { @@ -231,8 +214,7 @@ OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); return $this->redirect( [ - 'view', - 'id' => $model->id, + 'index', ] ); } else { diff --git a/views/order/_form.php b/views/order/_form.php index 8464a00..f87277e 100755 --- a/views/order/_form.php +++ b/views/order/_form.php @@ -57,15 +57,39 @@