public function newRuleAction() { $actionId = $this->get('actionId'); $name = $this->get('name'); $actionType = $this->get('actionType'); $outputInput = $this->get("io"); $creditAmount = $this->get('creditAmt'); $frequency = $this->get('freq'); $times = $this->get('times'); $action = $this->get('action'); $id = $this->get('id'); $tradeModel = new TradeModel(); $result = $tradeModel->newRule($actionId, $name, $actionType, $outputInput, $creditAmount, $frequency, $times, $action, $id); $this->redirect("getCreditRules"); }