/** * @throws CHttpException */ public function actionClear() { if (!Yii::app()->getRequest()->getIsPostRequest()) { throw new CHttpException(404); } $this->couponManager->clear(); Yii::app()->ajax->success(Yii::t("CouponModule.coupon", "Coupons are deleted")); }
/** * @throws CHttpException */ public function actionClear() { $this->couponManager->clear(); Yii::app()->ajax->success(Yii::t("CouponModule.coupon", "Coupons are deleted")); }