예제 #1
0
 public function actionCode($seoUrl)
 {
     $userId = Auth::getUser()['id'];
     //echo $seoUrl;
     $packets = PaymentModel::model()->findAll();
     $discount = ReferalsModel::model()->where(" code = '" . $seoUrl . "'")->findRow();
     $currencies = CurrencyModel::model()->findRow();
     $this->view("Code", array("discount" => $discount->discount, "packets" => $packets, "code" => $seoUrl, "currency" => $currencies), false);
 }
예제 #2
0
 public function actionPayment()
 {
     $packets = PaymentModel::model()->findAll();
     $currency = CurrencyModel::model()->findRow();
     $this->view("payment", array("packets" => $packets, "currency" => $currency), false);
 }