why is this code failing? |
If you are outside of context of a controller or a model, try this:
Code: get_instance()->load->library('session'); But it would be preferable not to desperse usage of the session library within modules, code would become hardly testable, it would be better you to read this data form a controller and pass it to a model. |
Messages In This Thread |
why is this code failing? - by richb201 - 07-01-2020, 03:49 AM
RE: why is this code failing? - by neuron - 07-01-2020, 05:04 AM
using session data between a controller and a library - by richb201 - 07-01-2020, 08:26 AM
RE: why is this code failing? - by InsiteFX - 07-03-2020, 06:59 AM
RE: why is this code failing? - by ivantcholakov - 07-03-2020, 08:01 AM
RE: why is this code failing? - by richb201 - 07-03-2020, 09:04 AM
RE: why is this code failing? - by richb201 - 07-06-2020, 03:32 PM
|