application/controllers/Dashboard.php
//controller for the deleting of tourist spots
controller for the deleting of tourist spots
controller for the deleting of tourist spots
function deleteSpot(){
	 		$ret = $this->dashboard_model->Delete($_POST['id'], 'spots');
	 		echo json_encode($ret);
	 	}
function deleteSpot ( ) { $ ret = $ this -> dashboard_model -> Delete ( $ _POST [ 'id' ] , 'spots' ) ; echo json_encode ( $ ret ) ; }
controller for the deleting of tourist spots
controller for the deleting of tourist spots