function getCommuneAction(){ if($this->getRequest()->isPost()){ $data = $this->getRequest()->getPost(); $db = new Other_Model_DbTable_DbCommune(); $rows = $db->getCommuneBydistrict($data['district_id']); array_unshift($rows, array ( 'id' => -1, 'name' => 'បន្ថែមអ្នកទទួលថ្មី') ); print_r(Zend_Json::encode($rows)); exit(); } }