application/controllers/Dashboard.php
//page for managing the categories of the tourist spots
page for managing the categories of the tourist spots
page for managing the categories of the tourist spots
public function spotCategory(){
	 		if($this->session->userdata('admin')){
		 		$this->load->view('templates/header');
		 		$this->load->view('dashboard/spot_category');
		 		$this->load->view('templates/footer');
	 		}else{
	 			redirect('/');
	 		}	
	 	}
public function spotCategory ( ) { if ( $ this -> session -> userdata ( 'admin' ) ) { $ this -> load -> view ( 'templates/header' ) ; $ this -> load -> view ( 'dashboard/spot_category' ) ; $ this -> load -> view ( 'templates/footer' ) ; } else { redirect ( '/' ) ; } }
page for managing the categories of the tourist spots
page for managing the categories of the tourist spots