Subversion Repositories SmartDukaan

Rev

Rev 11397 | Details | Compare with Previous | 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
 
11103 lgm 18
		$currentclient = $this -> config -> item('current_client');
10582 lgm 19
		$this -> load -> config($currentclient);
11109 lgm 20
		$model = $currentclient.'_model';
21
		$this->load->model($model);
11400 lgm 22
		//print_r($_SERVER['SERVER_ADDR']);
10582 lgm 23
 
24
	}
25
 
26
 
27
 
28
 
29
 
30
}