Rev | Line | |
---|
[313] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
---|
| 2 | /**
|
---|
| 3 | * Lecture Class
|
---|
| 4 | *
|
---|
| 5 | * @author dzungnv02
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | class Lecture extends MX_Controller
|
---|
| 10 | {
|
---|
| 11 |
|
---|
| 12 | public function __construct()
|
---|
| 13 | {
|
---|
| 14 | parent::__construct();
|
---|
[318] | 15 | $this->load->library('session');
|
---|
[313] | 16 | }
|
---|
| 17 |
|
---|
| 18 | public function index()
|
---|
| 19 | {
|
---|
[318] | 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 | }
|
---|
[313] | 27 | }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | /* End of file home.php */
|
---|
| 31 | /* Location: ./application/modules/frontend/controllers/Lecture.php */ |
---|
Note: See
TracBrowser
for help on using the repository browser.