public function getchequesbycaveidfilterajaxAction() { try { $request = $this->getRequest(); if ($this->getRequest()->isPost()) { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $cave_id = (int) $request->cave_id; $pos = (int) $request->pos; $liqDate = $request->liqDate; if ($cave_id) { $cObj = new Gyuser_Model_Cheques(); $cObj->setCave_id($cave_id); $cMapper = new Gyuser_Model_ChequesDataMapper(); $result = $cMapper->GetChequeDetailsByCaveIdJson($cObj, $pos, $liqDate); if ($result) { echo json_encode($result); } else { echo 'f'; } } } } catch (Exception $e) { echo $e; } }