Library Question |
[eluser]Vik[/eluser]
I moved a function that's used by two of my models, to a library file. The function uses the DB object, so the following line doesn't run yet: Code: $this->db->where('id=', $user_id);
[eluser]Derek Allard[/eluser]
You bet. Take a look at Utilizing CodeIgniter Resources within Your Library.
|
Welcome Guest, Not a member yet? Register Sign In |