public function updateAction() { $this->form = $this->createUpdateForm(); if ($this->form->isSubmitted() && $this->form->validate()) { $echeck = $this->getDi()->echeckRecord; $this->form->toEcheckRecord($echeck); $echeck->user_id = $this->getDi()->auth->getUserId(); $result = new Am_Paysystem_Result(); $this->plugin->storeEcheck($echeck, $result); if ($result->isSuccess()) { return $this->redirectLocation(REL_ROOT_URL . '/member'); } else { $this->form->getElementById('echeck_ban-0')->setError($result->getLastError()); } } $this->view->form = $this->form; $this->view->invoice = null; $this->view->display_receipt = false; $this->view->display('echeck/info.phtml'); }