• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dashboard navigation problem!!

#1
am having two dashboard one for user and another of Admin
In the header when i click the admin page it cannot navigate to the corresponding page.


<a href="<?php echo base_url(); ?>users/dashboard"><?php echo $this->session->userdata('username'); ?></a>

User dashboard

Code:
Code:
$data['title'] = 'Dashboard';
            $this->load->model('user_model');         
     $data['appdetails_show'] = $this->user_model->getapp();   


            $this->load->view('templates/header');
            $this->load->view('user/dashboard', $data);
            $this->load->view('templates/footer');
Admin Dashboard
Code:

Code:
Code:
$data['title'] = 'Admin Dashboard';
     $this->load->model('user_model');         
     $data['appdetails_admin'] = $this->user_model->getapp_admin();   


     $this->load->view('templates/header');
     $this->load->view('users/admin_dashboard', $data);
     $this->load->view('templates/footer');

how to redirect ?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.