application/controllers/Dashboard.php
//controller for the deleting of establishment
controller for the deleting of establishment
controller for the deleting of establishment
function deleteTopDestination(){
			$ret = $this->dashboard_model->removeTopDestination($_POST['spotId'], 'top_destination');
			echo json_encode($ret);
		}
function deleteTopDestination ( ) { $ ret = $ this -> dashboard_model -> removeTopDestination ( $ _POST [ 'spotId' ] , 'top_destination' ) ; echo json_encode ( $ ret ) ; }
controller for the deleting of establishment
controller for the deleting of establishment