• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extending Session Library in Codeigniter 3.1.8

#1
Hello every one, I have worked with codeigniter for a while now and currency developing an application in the same.
I always find it easy to extend some built in libraries, the email class for instance, but never have I been faced with a situation where I need to extend the session library. Here is the thing, my email sub-class works fine and I have all the extended functionality that I have added, however, when I try extending the session library, it seems my sub-class is not used. It seems codeigniter still loads the in-built session library.

I have searched allover for how to fix this, but I don't seem to get a solution. Anyone with an idea of how to go about this?
Thanks in advance.
Reply

#2
@larrycodes,

Any chance on you upgrading to current version of CI? Also, is it possible to see code in order to see how you extended the class and where was it used?
Reply

#3
Thanks @php_rocs,

I figured it out, turns out since the Session library was moved and is in a subfolder, I needed to also create a subfolder in the Session in the libraries directory and there in extend the Session library.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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