session->userdata('logged_in')==false){ $location = site_url('welcome'); header("Location: ".$location); } $this->load->model('Transaction'); } public function index() { // echo ""; //$this->load->view('back/dashboard'); $sb['aktif'] = "Home"; $sb['order'] = $this->Transaction->pending_order(); $hd['title'] = "Dashboard Admin - Toko Dzaky Mulya"; $hd['User'] = $this->session->userdata('username'); $this->load->view('back/header',$hd); $this->load->view('back/sidebar',$sb); $this->load->view('back/dashboard'); $this->load->view('back/footer'); } }