Ejemplo n.º 1
0
 public function actionIndex()
 {
     $couponType = new Coupon();
     $resultCouponType = $couponType->getAllCouponType();
     $websiteStores = new Website();
     $resultStores = $websiteStores->getAllWebsiteName();
     $couponCategories = new CouponCategories();
     $resultCategory = $couponCategories->getAllStoresName();
     $couponDetail = new Coupon();
     $resultDetail = $couponDetail->getAllCouponDetail();
     return $this->render('index', ['resultType' => $resultCouponType, 'resultStores' => $resultStores, 'resultCategory' => $resultCategory, 'resultDetail' => $resultDetail]);
 }