Frequently Used Scripts

$CI =& get_instance();

$CI->load->helper('url');
$CI->load->library('session');
$CI->config->item('base_url');

 

//Load language file /en/demo_lang.php
$this->lang->load('demo', 'en');

//Set values
$lang['error_email_missing'] = "You must submit an email address";

//Usage
$this->lang->line('error_email_missing');