Created
March 13, 2018 13:19
-
-
Save jagroop/ed4b298373d346fc9f46dfe216300db5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class LanguageLoader { | |
public function initialize() { | |
$ci =& get_instance(); | |
$ci->load->helper('language'); | |
$siteLang = $ci->session->userdata('site_lang'); | |
if ($siteLang) { | |
$ci->lang->load('information', $siteLang); | |
} else { | |
$ci->lang->load('information','english'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment