Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 6 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 54
  1. #11
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  2.  

  3. #12
    Banned
    Join Date
    May 2011
    Location
    Fairfax, CA
    Posts
    2,036
    Member #
    28003
    Liked
    126 times
    What's wrong with PHP includes for header and footer?

  4. #13
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Quote Originally Posted by shovenose, post: 223504
    What's wrong with PHP includes for header and footer?
    3 things...

    1. The paradigm is dependent on the individual pages each following a set standard in order to render properly. Besides being highly redundant (always bad), forgetting to place the includes in, or placing them incorrectly could cause problems. Ever had a redirect in your header include break because the include was placed on line #2 of the including script? Yeah, that's just one of those problems.

    2. The "header" and "footer" are a set rendering format, meaning the page cannot be served as anything besides what's included in the header and footer. Let's say your header and footer are HTML, well now you can't return the body as JSON or XML, or even just as an HTML snippet without a full header/footer wrapper, for AJAX loading, for example. By separating, you allow the content to be rendered however the controller determines is appropriate, allowing you to reuse the logic for multiple different forms of presentation.

    3. By separating database, business logic, and presentation into entirely separate and intact areas of code (models, controllers, and views), you allow database developers, PHP coders, and HTML guys to each work in an uncorrupted environment with minimal overlap into other peoples' work. Further, this paradigm makes parallel development efforts more effective, because you'll have less merges when less people are touching the same code.

  5. #14
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    How have I never even heard of this?
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  6. #15
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Quote Originally Posted by Ronald Roe, post: 223519
    How have I never even heard of this?
    The MVC craze hasn't made its way to Oklahoma yet.

  7. #16
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Quote Originally Posted by Andrew Yurlov, post: 223491
    I don't know why but im just not getting what your talking about... If you could find a link or a tutorial for this that would be awesome. I think I need to start thinking about this too. I've never used something like this before.
    FYI, what I posted there IS a tutorial, of sorts. You can actually cut and paste that code and it should work as is.

  8. #17
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by smoseley, post: 223526
    The MVC craze hasn't made its way to Oklahoma yet.
    Nor, apparently, to Quebec - I had to look up a definition of it before I went searching for the links I posted. Now I'm reading up on it like mad, because I use includes in every site I build - I'm scared that I'll have broken sites all over the place...
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  9. #18
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Well Canada is another story entirely....

  10. #19
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Quote Originally Posted by smoseley, post: 223526
    The MVC craze hasn't made its way to Oklahoma yet.
    By God, methinks it's about time. OKC web designers will be MVC'ing like crazy in no time. It'll be like bedazzled jeans.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  11. #20
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by smoseley, post: 223529
    Well Canada is another story entirely....
    Yeah, and Quebec is even more special...
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Page 2 of 6 FirstFirst 1 2 3 4 ... LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:09 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com