public function consolidatetercerosopajaxAction() { try { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $request = $this->getRequest(); if ($this->getRequest()->isPost()) { $mapper = new Gyuser_Model_OperationsDataMapper(); $opId = $request->operation_id; $chequesListJson = $request->cheques_json; $success = $mapper->OpTercerosStateChange($opId, 9, null, $chequesListJson); //6 = 'ingresar cheques' if ($success) { echo $success; } elseif (!$success) { throw Exception("Hubo un error al enviar la operación con cheques de terceros."); } } else { throw Exception("Hubo un error al enviar el formulario."); } } catch (Exception $e) { echo $e; } }