Pyro's is complicated because its a CMS and wants to support meaningful URLs (like Wordpress)<div>Are you replicating the CMS behavior?</div><div><br>Eric</div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Tue, Dec 4, 2012 at 9:16 AM, keith smith <span dir="ltr"><<a href="mailto:klsmith2020@yahoo.com" target="_blank">klsmith2020@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><br><br>It is complicated.  I downloaded pyrocms and they are doing some fancy thing with the Super Controller also.  Very advanced and very sophisticated.  <br>

<br><br><br>------------------------<br>
Keith Smith<div class="im"><br><br>--- On <b>Mon, 12/3/12, Eric Cope <i><<a href="mailto:eric.cope@gmail.com" target="_blank">eric.cope@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">

<div class="im"><br>From: Eric Cope <<a href="mailto:eric.cope@gmail.com" target="_blank">eric.cope@gmail.com</a>><br>Subject: Re: OT: CodeIgniter Routing<br>To: "Main PLUG discussion list" <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>><br>

</div>Date: Monday, December 3, 2012, 8:50 PM<div><div class="h5"><br><br><div>Without seeing your code and application, it looks overly complicated... but if it works for you, great!<br><br>Eric<br><div><br><br><div>On Mon, Dec 3, 2012 at 6:52 PM, keith smith <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=klsmith2020@yahoo.com" target="_blank">klsmith2020@yahoo.com</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top"><br>I've been looking for a solution to reducing the size of my controller by making multiple controllers.  <br>



<br>I think I may have found a solution.  It's a little complex, however I get the gist of it. Your thoughts?<br><br><a rel="nofollow" href="https://gist.github.com/4157418" target="_blank">https://gist.github.com/4157418</a><br>

<br>

<br><br>------------------------<br>
Keith Smith<div><br><br>--- On <b>Sun, 12/2/12, Eric Cope <i><<a rel="nofollow" href="http://mc/compose?to=eric.cope@gmail.com" target="_blank">eric.cope@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">



<div><br>From: Eric Cope <<a rel="nofollow" href="http://mc/compose?to=eric.cope@gmail.com" target="_blank">eric.cope@gmail.com</a>><br>Subject: Re: OT: CodeIgniter Routing<br>To: "Main PLUG discussion list" <<a rel="nofollow" href="http://mc/compose?to=plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>><br>



</div>Date: Sunday, December 2, 2012, 10:28 AM<div><div><br><br><div>That's what I do. It makes it much easier. It makes testing easier too.<div>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...</div>



<div><br></div>

<div>Eric</div><div><br><br><div>On Sun, Dec 2, 2012 at 10:26 AM, Tom Haws <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=tom.haws@gmail.com" target="_blank">tom.haws@gmail.com</a>></span> wrote:<br>





<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a question/thought.<br><br>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?<span><font color="#888888"><br>






<br>Tom<br>
</font></span><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a rel="nofollow" href="http://mc/compose?to=PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a rel="nofollow" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>
</div><br></div></div>-----Inline Attachment Follows-----<div><br><br><div>---------------------------------------------------<br>PLUG-discuss mailing list - <a rel="nofollow" href="http://mc/compose?to=PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>



To subscribe, unsubscribe, or to change your mail settings:<br><a rel="nofollow" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div>

</div></blockquote>

</td></tr></tbody></table><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a rel="nofollow" href="http://mc/compose?to=PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a rel="nofollow" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>
</div><br>-----Inline Attachment Follows-----<br><br><div>---------------------------------------------------<br>PLUG-discuss mailing list - <a href="http://mc/compose?to=PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>

To subscribe, unsubscribe, or to change your mail settings:<br><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div></div></div>

</blockquote></td></tr></tbody></table><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>