FreeEnergy
I used the technique of including modules on several Web applications, and it led me to consider all the discrete elements of a Web page. Headers and footers are obvious, and so are other repeating navigational elements. Sometimes you can divide pages up into the content unique to the page, the stuff that comes before it, and the stuff that comes after it. This could be hard to maintain, however. Some of the HTML is in one file, some in another. If nothing else you'll need to flip between two editor windows.
Consider for a moment a Web page as an object—that is, in an object-oriented way. On the surface, a Web page is a pair of HTML tags containing HEAD tags and BODY tags. Regardless of the design or content of the page, these tags ...
Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.