diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 72db562..d5409d9 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -218,7 +218,23 @@ ); } } - + + + + + public function actionPrint(){ + $orderId = Yii::$app->request->get("order_id"); + if(!empty($orderId)){ + $order = $this->findModel($orderId); + return $this->renderPartial('@frontend/views/cabinet/order_print',[ + 'order' => $order + ]); + } else { + throw new NotFoundHttpException('The requested page does not exist.'); + } + + } + public function actionUpdate($id) { if (\Yii::$app->request->post('hasEditable')) { -- libgit2 0.21.4