PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley

Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Making a Template

Thursday July 31, 2008
The easiest way to update all of your pages at once is to have them all working off of the same template. When you want to change the look of your site you only need to update these template files, not every page individually. You can create header, footer, or other template blocks using PHP includes. This can save you a lot of headaches later when updating your site.

Comments

August 6, 2008 at 3:22 pm
(1) Anon says:

Even if you don’t want to use your template for styling, it will save you a ton of work to create a template for your site navigation alone. Adding a page? Just update one file and every page now contains the link to your new page.
If you don’t want to overhaul your site completely, you can start with a navigation include file. Once you see how much work this saves you will be motivated to go further.
cheers

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore PHP / MySQL

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

PHP / MySQL

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.