Ejemplo n.º 1
0
 public function getrejedchequescteyclientidajaxAction()
 {
     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->RejectedChequeByClinetId($cObj);
             if ($cList) {
                 echo json_encode($cList);
             } else {
                 echo json_encode('');
             }
         }
     } catch (Exception $e) {
         echo $e;
     }
 }