Page 2 of 2

Re: include(); Navigation

Posted: Mon Oct 27, 2008 8:32 pm
by rabatitat
Thanks for all the replies! :D

I'm still taking all your suggestions in and am currently trying to make it all fit in.

The MVC paradigm doest make the code more manageable. All I did was rename database tables move code from the monolithic index.php to places and files where they relate to in order for the whole thing to conform to MVC.

Now I'm more comfortable with the work I'm doing, still they should have given me access to mod_rewrite...

What I don't get is with all the books out there on PHP, they hardly mention structuring. If you follow the examples they put forth in their books you'll end up with what I had at the start of this thread... A mish-mash of 2 or more different types of code...

Re: include(); Navigation

Posted: Mon Oct 27, 2008 10:56 pm
by josh
rabatitat wrote:What I don't get is with all the books out there on PHP, they hardly mention structuring. If you follow the examples they put forth in their books you'll end up with what I had at the start of this thread... A mish-mash of 2 or more different types of code...
The books on structuring, called design patterns usually aren't language specific

Re: include(); Navigation

Posted: Tue Oct 28, 2008 12:01 pm
by rabatitat
jshpro2 wrote:
rabatitat wrote:What I don't get is with all the books out there on PHP, they hardly mention structuring. If you follow the examples they put forth in their books you'll end up with what I had at the start of this thread... A mish-mash of 2 or more different types of code...
The books on structuring, called design patterns usually aren't language specific
I haven't found one yet which would apply to the web application development context.

Re: include(); Navigation

Posted: Wed Oct 29, 2008 3:30 am
by josh
Just about every book in the Addison Wesley Signature Series, be sure to check out "Patterns of enterprise application architecture", "design patterns: elements in reusable object oriented software" , also "test driven development" by Kent Beck

Re: include(); Navigation

Posted: Wed Oct 29, 2008 5:44 am
by rabatitat
jshpro2 wrote:Just about every book in the Addison Wesley Signature Series, be sure to check out "Patterns of enterprise application architecture", "design patterns: elements in reusable object oriented software" , also "test driven development" by Kent Beck
Thanks a lot. You've been a great help... I check those titles out. :D

Re: include(); Navigation

Posted: Wed Oct 29, 2008 12:18 pm
by josh
Also what I found helpful while I was waiting on amazon to deliver my books, was goto wikipedia and search design patterns, look under structural patterns and look at some of the ways they can be used ( the examples )