CodeIgniter Forums
ACCESS CI Super object from MY_LANG - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18)
+--- Thread: ACCESS CI Super object from MY_LANG (/showthread.php?tid=66181)



ACCESS CI Super object from MY_LANG - neoblasted - 09-16-2016

Hi, IM trying for days to access CI super object from MY_LANG, but I cant,

what im trying to to is to save language in my session var, and then loading the saved language in MY_LANG when language is not specified in the URI, please help me!


RE: ACCESS CI Super object from MY_LANG - InsiteFX - 09-17-2016

PHP Code:
class YourClassName {

 
   protected $ci;

 
   public __construct()
 
   {
 
       $this->ci =& get_instance();
 
   }

    
// you will need to use $this->ci->session() etc; to access the session in this class