Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
Apache Today [Your Apache News Source] To

Apache HTTPD Links
Apache XML Project
The Jakarta Project
The Java Apache Project
Apache-Perl Integration Project
Apache Project
PHP Server Side Scripting
Apache-Related Projects
The Apache Software Foundation
Apache Module Registry
The Apache FAQ
The Linux Channel at
Linux Start
Linux Planet
BSD Today
Apache Today
Just Linux
Linux Apps
Linux Today
Linux Central
All Linux Devices
BSD Central
Enterprise Linux Today
Linux Programming
PHPBuilder: A Template Framework for Static Sites
Nov 26, 2000, 12 :53 UTC (0 Talkback[s]) (654 reads) (Other stories by Matthew Kendall)

"Templates can bring order and structure to a web site. In this article I describe how templates can be used to control the page layout for a site that is currently composed of many pages of static HTML, using a popular template class and a new feature of PHP4."

"But first, let's set the scene. There are two distinct motivations for introducing templates:

  • to separate functionality (PHP) from layout (HTML)
  • to avoid duplication of repeated elements"

"The first motivation is the most-often discussed. Here the situation is that a group of programmers produce PHP scripts to generate the content of a page, whilst a group of graphic designers produce HTML and images to control the appearance of the finished page. The idea is to allow both groups to work on independent sets of files. The programmers can work on files that contain only PHP, without concerning themselves with producing nicely presented HTML, whilst the graphic designers can work on the layout of the page using their favourite visual editor, without worrying about breaking any embedded code."

Complete Story

Related Stories:
Writing Input Filters for Apache 2.0(Nov 22, 2000)
Filtering I/O in Apache 2.0: Part 2(Oct 23, 2000)
Filtering I/O in Apache 2.0(Sep 20, 2000)
E-Commerce Solutions: Template-Driven Pages, Part 2(Sep 13, 2000)
PHP on Apache: The Definitive Installation Guide(Aug 09, 2000)
E-Commerce Solutions: Template-Driven Pages(Jun 28, 2000)
E-Commerce Solutions: An Apache Overview(May 31, 2000)
PHP 4.0 -- Dynamic Content for the World Wide Web Warrior(May 25, 2000)

  Current Newswire:
Everything Solaris: Apache: Handling Traffic

LinuxEasyInstaller 2.0 final release

Apache 2.0.32 beta is available

Everything Solaris: Apache: The Basics

Apache Jakarta James Mailserver v2.0a2 Released

PostgreSQL v7.2 Final Release

Daemon News: Multiple webservers behind one IP address

Zend Technologies launches Zend Studio 2.0

NuSphere first to enable development of PHP web services

Covalent Technologies raises $18 million in venture capital

No talkbacks posted.
Enter your comments below.
Your Name: Your Email Address:

Subject: CC: [will also send this talkback to an E-Mail address]

See our talkback-policy for or guidelines on talkback content.

About Triggers Media Kit Security Triggers Login

All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright 2002 INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.