Language

Official: http://www.codeigniter.org.tw/user_guide/libraries/language.html

Controller:

//Load lang file
$this->lang->load(strtolower(__CLASS__), $this->lang_code);

//Show localized string
$this->lang->line('thanks');

//Show localized string in sub array
//e.g. $lang['err']['fg_pw'] = 'Invalid password';
$this->lang->line('err')['fg_pw'];

//Save variable for view to use
$['lang'] = $this->lang;

View:

echo $lang->language['title'];
echo $lang->line("title");