application/controllers/Dashboard.php
//controller for the editing the  category of tourist spots
controller for the editing the  category of tourist spots
controller for the editing the category of tourist spots
public function editCategory(){
	 		$data['name'] = $_POST['category'];
	 		$id = $_POST['id'];
	 		$ret = $this->dashboard_model->Edit($data,$id,'spot_category');
	 		echo $ret;
	 	}
public function editCategory ( ) { $ data [ 'name' ] = $ _POST [ 'category' ] ; $ id = $ _POST [ 'id' ] ; $ ret = $ this -> dashboard_model -> Edit ( $ data , $ id , 'spot_category' ) ; echo $ ret ; }
controller for the editing the  category of tourist spots
controller for the editing the category of tourist spots