Search found 11 matches
- Wed Oct 29, 2008 5:44 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
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 bee...
- Tue Oct 28, 2008 12:01 pm
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
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...
- Mon Oct 27, 2008 8:32 pm
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
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 ...
- Wed Oct 15, 2008 3:37 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
No I haven't really found something I could apply to my problem since the server this thing is gonna live on won't allow me to use .htaccess files... I'd really appreciate links to/or examples re: this. If I get some time I will convert your example above to Action Controllers to give you an exampl...
- Tue Oct 14, 2008 5:13 pm
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
I don't think so... It's still the same thing and actually longer.omniuni wrote:You could also try an elseif, it may at least clean it up a bit. I hate validation.
- Tue Oct 14, 2008 5:09 pm
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
Did you find what you want? Do you want examples of converting the code above to a Front/Action Controller design? No I haven't really found something I could apply to my problem since the server this thing is gonna live on won't allow me to use .htaccess files... I'd really appreciate links to/or ...
- Fri Oct 10, 2008 10:44 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
Seems I won't be getting any sleep after all... Just Googled Front Controller and I might be in for another long read...
Thank you very much for pointing me in the right direction.
Thank you very much for pointing me in the right direction.
- Fri Oct 10, 2008 10:31 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
Thanks for that. I'll look into it after I get some sleep...
- Fri Oct 10, 2008 1:50 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
It's just one big GoTo *cringe* system now... :banghead: The code works fine but it's a bitch to maintain, not to mention the problems that would crop up with CSS... It's gone up to 800 lines now and I'm not even halfway through the forms yet. 8O I've decided not to use javascript for anything more...
- Fri Oct 10, 2008 1:38 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
Re: include(); Navigation
In my experience I think it's just one of the lengthy parts of validation. Obviously it's very useful to make use of functions where you can. You can get the forms method from the server using $_SERVER['REQUEST_METHOD'] but this doesn't indicate the form element i.e. $_POST['cmdAddNewUser']. My adv...
- Wed Oct 08, 2008 7:54 am
- Forum: PHP - Theory and Design
- Topic: include(); Navigation
- Replies: 20
- Views: 6429
include(); Navigation
I'm not really well-versed in PHP since my coding background isn't web based. I have this new project that has to be platform-independent hence the shift to web application development. Now the I want the feel of the site to be more like your usual binary app... The problem is with PHP/HTML being mo...