public function getgestiondetailsajaxAction() { try { $request = $this->getRequest(); if ($this->getRequest()->isPost()) { $clientid = $request->client_id; $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $cObj = new Gyuser_Model_Cheques(); $cObj->setId($clientid); $cMapper = new Gyuser_Model_ChequesDataMapper(); $cList = $cMapper->GestionDetialsByClinetId($cObj); $cbObj = new Gyuser_Model_Cobranzas(); $cbObj->setId($clientid); $coMapper = new Gyuser_Model_CobranzasDataMapper(); $cbList = $coMapper->GestionDetialsByClinetId($cbObj); if ($cList || $cbList) { $result = array('grcList' => $cList, 'gccList' => $cbList); echo json_encode($result); } else { echo "f"; } } } catch (Exception $e) { echo $e; } }