/** * @param $token * @return string * @throws NotFoundHttpException */ public function actionView($token) { $order = Checkout::order($token); if (!$order) { throw new NotFoundHttpException(); } return $this->render('view', ['order' => $order]); }