Welcome Guest, Not a member yet? Register   Sign In
ACCESS CI Super object from MY_LANG
#1

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!
Reply
#2

(This post was last modified: 09-17-2016, 03:41 AM by InsiteFX.)

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


What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB