function getClientByBranchAction(){ if($this->getRequest()->isPost()){ $data = $this->getRequest()->getPost(); $branch = $data["branch_id"]; $db = new Loan_Model_DbTable_DbGroupPayment(); $row = $db->getClientByBranch($branch); print_r(Zend_Json::encode($row)); exit(); } }