Subversion Repositories SmartDukaan

Rev

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

Rev 11013 Rev 11108
Line 5... Line 5...
5
public $layoutName ='';
5
public $layoutName ='';
6
	function __construct() {
6
	function __construct() {
7
 
7
 
8
		// Call the CI_controller constructor
8
		// Call the CI_controller constructor
9
		parent::__construct();
9
		parent::__construct();
10
		$admin = $this->session->userdata('admin');
10
		// $admin = $this->session->userdata('admin');
11
		if(!isset($admin) || empty($admin)) {
11
		// if(!isset($admin) || empty($admin)) {
12
			redirect(base_url().'authorize');
12
		// 	redirect(base_url().'authorize');
13
		}
13
		// }
14
		$this->layout->setlayout('layout/layout_main');
14
		$this->layout->setlayout('layout/layout_main');
15
		$this->load->model('search_model');
15
		$this->load->model('search_model');
16
		$this->load->model('magento_model');
16
		$this->load->model('magento_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 , "/")).'/';