Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12694 anikendra 1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
 
3
class Welcome extends MY_Controller {
4
 
5
public $layoutName ='';
6
 
7
	function __construct() {
8
 
9
		// Call the CI_controller constructor
10
		parent::__construct();
11
 
12
 
13
 
14
	}
15
	public function index()
16
	{
17
		//standard array
18
		$data = array();
19
 
20
		$this->load->view('welcome/welcome_message');
21
	}
22
	public function r($data)
23
	{
24
		if(isset($data) and !empty($data))
25
		{
26
			$this->session->set_userdata('current_client',$data);
27
		}
28
		else
29
		{
30
			$this->session->set_userdata('current_client','prestashop');
31
 
32
		}
33
		redirect(base_url().'home');
34
 
35
 
36
 
37
	}
38
}
39
 
40
/* End of file welcome.php */
41
/* Location: ./application/controllers/welcome.php */