That's what I do. It makes it much easier. It makes testing easier too.
I have a question/thought.
If a lot of the CRUD is repetitive (similar table structures), would it be appropriate to create a models/generic_model.php that has the generic CRUD functions/SQL and a set_table method or some other way of passing it a table name to enhance DRY programming?
Tom
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss