Exemplo n.º 1
0
	public function addVillageAction(){
		if($this->getRequest()->isPost()){
			$data = $this->getRequest()->getPost();
			$data['status']=1;
			$db_vill = new Other_Model_DbTable_DbVillage();
			$id = $db_vill->addVillageByAjax($data);
			print_r(Zend_Json::encode($id));
			exit();
		}
	}
Exemplo n.º 2
0
 function addVillageAction()
 {
     //At callecteral when click client
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db_village = new Other_Model_DbTable_DbVillage();
         $village = $db_village->addVillage($data);
         print_r(Zend_Json::encode($village));
         exit;
     }
 }