ErrorException [ Notice ]: Undefined index: HTTP_ACCEPT_LANGUAGE

APPPATH/controllers/Slide_kota_bandung.php [ 15 ]

10 		parent::__construct();
11 
12 		$this->class_name = strtolower(get_class($this));
13 
14 		#	Detect bahasa yang digunakan browser
15 		if (substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == 'en')
16 			$language = 'english';	
17 
18 		$this->session->set_userdata('site_lang', $language);
19 
20 		$this->lang->load('message', $this->session->userdata('site_lang'));
  1. APPPATH/controllers/Slide_kota_bandung.php [ 15 ] » MY_Exceptions::error_handler(arguments)

  2. FCPATH/system/core/CodeIgniter.php [ 518 ] » Slide_kota_bandung->__construct()

  3. FCPATH/index.php [ 319 ] » require_once(arguments)

Environment

ErrorException [ Notice ]: Undefined variable: language

APPPATH/controllers/Slide_kota_bandung.php [ 18 ]

13 
14 		#	Detect bahasa yang digunakan browser
15 		if (substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == 'en')
16 			$language = 'english';	
17 
18 		$this->session->set_userdata('site_lang', $language);
19 
20 		$this->lang->load('message', $this->session->userdata('site_lang'));
21 	}
22 
23 	public function index()
  1. APPPATH/controllers/Slide_kota_bandung.php [ 18 ] » MY_Exceptions::error_handler(arguments)

  2. FCPATH/system/core/CodeIgniter.php [ 518 ] » Slide_kota_bandung->__construct()

  3. FCPATH/index.php [ 319 ] » require_once(arguments)

Environment