include(); Navigation

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

rabatitat
Forum Newbie
Posts: 11
Joined: Wed Oct 08, 2008 7:16 am

Re: include(); Navigation

Post 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...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: include(); Navigation

Post 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
rabatitat
Forum Newbie
Posts: 11
Joined: Wed Oct 08, 2008 7:16 am

Re: include(); Navigation

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: include(); Navigation

Post 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
rabatitat
Forum Newbie
Posts: 11
Joined: Wed Oct 08, 2008 7:16 am

Re: include(); Navigation

Post 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
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: include(); Navigation

Post 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 )
Post Reply