Making the Template

Since all of the pages in this and the following chapter will be part of the same Web application, it’ll be worthwhile to use a common template system. Therefore, I’ll put together the header and footer files exactly as I had in Chapter 3, “Creating Dynamic Web Sites.”

To make the header file:

1.
Design the template in your text or WYSIWYG editor (Figure 6.1).
Figure 6.1. To make my template files, I first design a generic page as the model.

As I mentioned in Chapter 3, when using the template system (to separate your HTML from your PHP), it’s often easiest to create the HTML design first and then break it into its respective ...

Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide 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.