public function newExchangeAction() { $amt = $this->get('amt'); $price = $this->get('price'); $order = (int) $this->get('order'); $type = $this->get('type'); $action = $this->get('action'); $id = (int) $this->get('id', 0); $tradeModel = new TradeModel(); $result = $tradeModel->newExchange($amt, $price, $order, $type, $action, $id); $this->redirect("getCoinCredit"); }