OT: CodeIgniter Routing

keith smith klsmith2020 at yahoo.com
Tue Dec 4 10:41:27 MST 2012



No we are not trying to do anything special with the URL.  I would submit that emulating "permalinks" is not that hard.

All you have to do is store the URL of the content in a field associated with that content. Then all you have to do is read the URL and use it to search on that field.  Pretty straight forward.



------------------------

Keith Smith

--- On Tue, 12/4/12, Eric Cope <eric.cope at gmail.com> wrote:

From: Eric Cope <eric.cope at gmail.com>
Subject: Re: OT: CodeIgniter Routing
To: "Main PLUG discussion list" <plug-discuss at lists.phxlinux.org>
Date: Tuesday, December 4, 2012, 9:24 AM

Pyro's is complicated because its a CMS and wants to support meaningful URLs (like Wordpress)Are you replicating the CMS behavior?
Eric



On Tue, Dec 4, 2012 at 9:16 AM, keith smith <klsmith2020 at yahoo.com> wrote:




It is complicated.  I downloaded pyrocms and they are doing some fancy thing with the Super Controller also.  Very advanced and very sophisticated.  





------------------------

Keith Smith

--- On Mon, 12/3/12, Eric Cope <eric.cope at gmail.com> wrote:



From: Eric Cope <eric.cope at gmail.com>
Subject: Re: OT: CodeIgniter Routing
To: "Main PLUG discussion list" <plug-discuss at lists.phxlinux.org>


Date: Monday, December 3, 2012, 8:50 PM

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 <klsmith2020 at yahoo.com> 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 <eric.cope at gmail.com> wrote:





From: Eric Cope <eric.cope at gmail.com>
Subject: Re: OT: CodeIgniter Routing
To: "Main PLUG discussion list" <plug-discuss at lists.phxlinux.org>




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 <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



-----Inline Attachment Follows-----

---------------------------------------------------
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




---------------------------------------------------

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



-----Inline Attachment Follows-----

---------------------------------------------------
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


---------------------------------------------------

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



-----Inline Attachment Follows-----

---------------------------------------------------
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/20121204/e70c2bf8/attachment.html>


More information about the PLUG-discuss mailing list