OT: CodeIgniter Routing

Eric Cope eric.cope at gmail.com
Sun Dec 2 10:28:50 MST 2012


That's what I do. It makes it much easier. It makes testing easier too.
I made it when i extend the class, the table name is set, then I use late
static binding to reference it in the base class...

Eric


On Sun, Dec 2, 2012 at 10:26 AM, Tom Haws <tom.haws at gmail.com> wrote:

> 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 at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20121202/53a8de8d/attachment.html>


More information about the PLUG-discuss mailing list