Subversion Repositories SmartDukaan

Rev

Rev 11071 | Rev 11252 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11071 Rev 11108
Line 6... Line 6...
6
  
6
  
7
  function __construct() {
7
  function __construct() {
8
 
8
 
9
    // Call the CI_controller constructor
9
    // Call the CI_controller constructor
10
    parent::__construct();
10
    parent::__construct();
11
    $admin = $this->session->userdata('admin');
11
    // $admin = $this->session->userdata('admin');
12
    if(!isset($admin) || empty($admin)) {
12
    // if(!isset($admin) || empty($admin)) {
13
      redirect(base_url().'authorize');
13
    //   redirect(base_url().'authorize');
14
    }
14
    // }
15
    $this->layout->setlayout('layout/layout_main');
15
    $this->layout->setlayout('layout/layout_main');
16
    $this->load->model('faq_model');
16
    $this->load->model('faq_model');
17
    $this->layoutName= $this->layout->getLayout();
17
    $this->layoutName= $this->layout->getLayout();
18
    $this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
18
    $this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
19
    // print_r($this->session->all_userdata());
19
    // print_r($this->session->all_userdata());