Ignore:
Timestamp:
Oct 27, 2014 5:57:58 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/controllers/lecture.php

    r313 r318  
    1313        {
    1414                parent::__construct();
     15                $this->load->library('session');
    1516        }
    1617
    1718        public function index()
    1819        {
    19                 $this->load->view ( 'lecture_editor');
     20                $user_info = $this->session->userdata('userInfo');
     21                if ($user_info){
     22                        $this->load->view ( 'lecture_editor');
     23                }else
     24                {
     25                        redirect('/frontend/home/');
     26                }
    2027        }
    2128}
Note: See TracChangeset for help on using the changeset viewer.