• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ACCESS CI Super object from MY_LANG

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!

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 the CodeIgniter Community in 2009.          ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.