Rev 11103 |
Go to most recent revision |
Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 10582 |
lgm |
1 |
<?php
|
|
|
2 |
if (!defined('BASEPATH'))
|
|
|
3 |
exit('No direct script access allowed');
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
Class MY_Controller extends CI_Controller {
|
|
|
7 |
|
|
|
8 |
function __construct() {
|
|
|
9 |
// Call the CI_controller constructor
|
|
|
10 |
parent::__construct();
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
//load everything needed
|
|
|
14 |
/*$currentclient =$this -> config -> item('current_client');
|
|
|
15 |
if(!isset($currentclient))
|
|
|
16 |
{$currentclient = $this -> session -> userdata('current_client');}*/
|
|
|
17 |
|
|
|
18 |
$currentclient = $this -> config -> item('current_client');
|
|
|
19 |
|
|
|
20 |
$this -> load -> config($currentclient);
|
|
|
21 |
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
}
|