session library inside of models? |
[eluser]MadZad[/eluser]
Hm. OK, code looks fine. Error message means $this->session is not resolving as expected in your model. Here's a couple of thoughts: Try setting and retrieving the session 'user_id' in the controller that includes the model in question. Just making sure the session library itself is loading/working ok. Can your model use other libraries? Perhaps try sending an email. Does your model extend Model and start with a capital letter, as per user guide? That can be an easy one to miss Code: class Abc_model extends Model { If none of those sheds any light, I'm not sure where to try next. Even those are a shot in the dark. |
Messages In This Thread |
session library inside of models? - by El Forum - 03-24-2008, 09:49 AM
session library inside of models? - by El Forum - 03-24-2008, 10:49 AM
session library inside of models? - by El Forum - 03-24-2008, 11:32 AM
session library inside of models? - by El Forum - 03-24-2008, 11:42 AM
session library inside of models? - by El Forum - 03-24-2008, 11:57 AM
session library inside of models? - by El Forum - 03-24-2008, 02:20 PM
|