public function rejectchequewithgastosajaxAction() { try { $request = $this->getRequest(); if ($this->getRequest()->isPost()) { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $mapper = new Gyuser_Model_ChequesDataMapper(); $Obj = new Gyuser_Model_Cheques(); $Obj->setId($request->id); $Obj->setRejected_gastos($request->gastos); $Obj->setRejected_type($request->gastos_type); $result = $mapper->RejectChequeWithGastos($Obj); if ($result) { echo $result; } else { echo "f"; } } } catch (Exception $e) { echo $e; } }