Business Intelligence Developer
Smiths Detection
US-MD-Edgewood

Justtechjobs.com Post A Job | Post A Resume

A Template Framework for Static Sites
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
Separating Functionality from Layout
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.
[ Next Page ]


Comments:
Агентство недвижимости БАЗИСАгентство недвижимости БАЗИС04/30/07 00:06
john@hotmail.comJohn Tyrrell03/08/05 14:12
freaking BS, I enjoyed the IPFreeflashonlinegames Com 12/03/04 18:48
it tells me i don't have Freeflashonlinegames Com 12/03/04 18:41
Thanks. I hope other people test it too. Sex Beplaced Ru 12/03/04 18:19
If not, what were all the witch trials about? Sex Beplaced Ru 12/03/04 18:12
PLease, how Can i download. Sex Beplaced Ru 12/03/04 18:12
freaking BS, I enjoyed the IPFreeflashonlinegames Com 12/03/04 18:12
This was closely associated with the rebirth of Sex Beplaced Ru 12/03/04 18:09
ummmmmmmmm whats this mummy??Freeflashonlinegames Com 12/03/04 18:09
it tells me i don't have Sex Beplaced Ru 12/03/04 17:57
This was closely associated with the rebirth of Freeflashonlinegames Com 12/03/04 17:53
Need help?Zite01/29/04 09:50
RE: FastClass Template Not For PHP 4.3.1Anas04/14/03 17:14
FastClass Template Not For PHP 4.3.1Earthrise02/24/03 13:19
HELP!!! I'm new....Dave12/13/02 19:02
RE: The {} are not removedNico11/20/02 15:47
FastTemplateChris10/22/02 14:48
Linking with the templateReaper08/22/02 11:13
Chinese characters are corrupted.Wendy Liu07/27/02 13:24
Embedding PHP in templatesNick07/17/02 00:29
ZIP Please!Dale06/29/02 06:37
RE: is it possible...?Nozmo05/21/02 15:27
is it possible...?Nozmo05/21/02 14:25
RE: Using file.php?page=homedonoe04/12/02 13:36
{$key} parsingRon Phillips03/18/02 11:34
RE: php templates & parent directoriesEric C. Pollitt03/08/02 21:03
RE: php templates & parent directoriesEric C. Pollitt03/05/02 16:41
RE: My SolutionAnthony R.02/20/02 22:49
RE: php templates & parent directoriesrod02/13/02 21:01
RE: Using file.php?page=homeWalter Horstman01/30/02 10:07
frames checkaqua man01/02/02 17:34
using template with peardaniel01/02/02 01:35
How to parse the "common elements" ?Johan Svahn12/19/01 11:56
Using file.php?page=homeFleur Corfield12/19/01 11:34
How to add a footerJohn12/18/01 22:42
RE: Passing variables from home to prependSamuel L. Diaz12/13/01 21:40
RE: The {} are not removedjerome bana10/03/01 19:31
RE: how to add php script: HELP!!!cgoodness08/28/01 07:01
php templates & parent directoriesCatie08/20/01 17:40
template.php3Josef08/10/01 09:45
does anyone still use this??jason matta07/23/01 23:52
PHP and Framesmichael07/23/01 20:45
Horrible Article!Brandon Keim07/09/01 20:14
Help on OBSherman Cahal06/13/01 21:24
Modifications-4th Common ElementEarthrise05/18/01 18:03
RE: Completely different way of using one filAlain Fontaine04/11/01 17:31
Smarty template engine BETTERsyber04/06/01 17:56
Smarty - the PHP compiling template enginephilip olson03/25/01 19:44
RE: The {} are not removedleslie03/14/01 22:53
RE: Phplib's vs FastTemplatebasil03/11/01 21:29
RE: Completely different way of using one filChris Simmons02/16/01 02:31
The {} are not removedBill Eddins02/14/01 10:18
Completely different way of using one fileOkamiTsubasa02/11/01 17:49
Admin. Tool and Content PublishingBrian Flora01/19/01 20:34
probs with cookieswim01/13/01 08:28
Slow??Peter01/04/01 10:17
can it happen?lin01/02/01 04:30
RE: I'm confused as hell alsoChip01/02/01 01:50
RE: I'm confused as hell alsojim12/30/00 02:32
I'm confused as hell alsoChip12/25/00 01:18
RE: class.FastTemplate.phpMatthew Kendall12/24/00 23:36
RE: My SolutionMatthew Kendall12/24/00 23:23
pixelcoreWeaponZero12/19/00 19:43
My SolutionJason12/15/00 16:44
Confused as helliucpxleps12/10/00 07:56
Embedding php in templatesjim12/10/00 07:29
RE: how to add php scriptjim12/09/00 03:46
Use php to create templates for phpDaniel Staver12/07/00 12:49
RE: Problems with warningAndrey12/04/00 15:23
how to add php scriptKarl12/04/00 13:16
Problems with warningFrederic12/04/00 10:32
Passing variables from home to prependAllen McLeod12/04/00 03:20
RE: Phplib's vs FastTemplateAndrey12/02/00 14:26
New Window....James11/30/00 16:09
RE: The big considerationScott Molinari11/28/00 15:52
class.FastTemplate.phpMarceu Filho11/27/00 12:32
The big considerationCliff Baeseman11/27/00 12:20
RE: the zip archiveKelly Jones11/26/00 15:02
RE: Phplib's vs FastTemplateTom Anderson11/26/00 03:46
the zip archiveChip11/25/00 15:41
RE: Easier ways to get the same effectashley etchell11/25/00 14:05
Other Template SystemsBrian Snipes11/24/00 22:10
take a look!!Thanasis11/24/00 08:55
RE: Phplib's vs FastTemplateDamien Bonvillain11/24/00 05:33
RE: Phplib's vs FastTemplatePeter11/23/00 05:32
RE: The template approachjan janssen11/23/00 04:33
RE: Is it only for "read-only" things ?Paul K Egell-Johnsen11/23/00 04:01
RE: The template approachPaul K Egell-Johnsen11/23/00 04:00
RE: The template approachLiron Levy11/23/00 02:41
RE: Phplib's vs FastTemplateBenjamin Smith11/23/00 02:13
Is it only for "read-only" things ?Habibi11/23/00 00:53
RE: The template approachJim Hawley11/22/00 15:44
RE: The template approachAnderson Fortaleza11/22/00 14:10
RE: Phplib's vs FastTemplateJan Lehnardt11/22/00 12:45
RE: The template approachPaul K Egell-Johnsen11/22/00 11:19
The template approachLiron Levy11/22/00 10:50
Phplib's vs FastTemplateAlex Verstraeten11/22/00 10:41
Easier ways to get the same effectAuke van Slooten11/22/00 06:41
auto-prepend/appendAndy Dickinson11/22/00 02:22
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.