Should I use my models in a library?
- by Piers
I've got my auth library in codeigniter which accesses the database to check to see if the email/password combination is correct.
If I'm sticking to the MVC practice, should I move the function that interacts with the database to my model, or is it best practice to leave it where it is so I can use it in the future?
Doesn't make much difference to me, other than the fact I'd have to re-write the library and create the function in my model, but if that's the way it should be then so be it.