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); }
public function actionPayment() { $packets = PaymentModel::model()->findAll(); $currency = CurrencyModel::model()->findRow(); $this->view("payment", array("packets" => $packets, "currency" => $currency), false); }