• 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:
$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');
[color=#000000]


how to redirect ?
https://solitaire.onl/ https://9apps.ooo/ https://bluestacks.vip/
Reply

#2
PHP Code:
<a href="<?php echo base_url('users/dashboard');?>"> <?php echo $this->session->userdata('username');?></a> 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
Thanks for the help.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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