Should I use my models in a library?

Posted by Piers on Stack Overflow See other posts from Stack Overflow or by Piers
Published on 2011-02-01T22:59:01Z Indexed on 2011/02/01 23:25 UTC
Read the original article Hit count: 251

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc