Re: OT: CodeIgniter Routing

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Cope
Date:  
To: Main PLUG discussion list
Subject: Re: OT: CodeIgniter Routing
Without seeing your code and application, it looks overly complicated...
but if it works for you, great!

Eric


On Mon, Dec 3, 2012 at 6:52 PM, keith smith <> wrote:

>
> I've been looking for a solution to reducing the size of my controller by
> making multiple controllers.
>
> I think I may have found a solution. It's a little complex, however I get
> the gist of it. Your thoughts?
>
> https://gist.github.com/4157418
>
>
>
> ------------------------
> Keith Smith
>
>
> --- On *Sun, 12/2/12, Eric Cope <>* wrote:
>
>
> From: Eric Cope <>
> Subject: Re: OT: CodeIgniter Routing
> To: "Main PLUG discussion list" <>
> Date: Sunday, December 2, 2012, 10:28 AM
>
>
> 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 <<http://mc/compose?to=tom.haws@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 - <http://mc/compose?to=PLUG-discuss@lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> -----Inline Attachment Follows-----
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - <http://mc/compose?to=PLUG-discuss@lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss