application/controllers/Dashboard.php
/*main page of the admin panel*/
main page of the admin panel
main page of the admin panel
public function dashboard(){
	 		if($this->session->userdata('admin')){
	 		  $this->load->view('templates/header');
	 		  $this->load->view('dashboard/dashboard');
	 		  $this->load->view('templates/footer');
	 		}else{
	 			redirect('/');
	 		}
	 	}
public function dashboard ( ) { if ( $ this -> session -> userdata ( 'admin' ) ) { $ this -> load -> view ( 'templates/header' ) ; $ this -> load -> view ( 'dashboard/dashboard' ) ; $ this -> load -> view ( 'templates/footer' ) ; } else { redirect ( '/' ) ; } }
main page of the admin panel
main page of the admin panel