Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

113 lines (112 sloc) 4.225 kb
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Template Engine</title>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#d9cef7">
<div align="center"><span class="titrepage">Template Engine, what is it for?</span><br>
</div>
<table width="100%" border="0" cellspacing="6">
<tbody><tr>
<td colspan="3" align="left" valign="top"><hr></td>
</tr>
<tr>
<td width="172" align="left" valign="top">Without a Template Engine, your
PHP program looks like this:</td>
<td width="180" align="left" valign="top"><img src="template_pic1.gif" width="120" height="146"></td>
<td align="left" valign="bottom"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td colspan="2">HTML and PHP are embedded with each other in the same
page.</td>
</tr>
<tr>
<td width="10" valign="top">-</td>
<td>It takes a long time to code.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>It's hard to read.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>It's not simple to perform maintenance.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>It's complicated to manage several pages in one program.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>It needs a programmer good at coding HTML.</td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top"><hr></td>
</tr>
<tr>
<td align="left" valign="top">With a Template Engine, your program looks like
this:</td>
<td align="left" valign="top"><img src="template_pic2.gif" width="180" height="70"></td>
<td align="left" valign="bottom">There is one program with pure
PHP and one template with pure HTML.<br>
<br>
The Template Engine (TinyButStrong) enables you to merge the HTML page
with data from your program. The engine is simple and powerful. It offers
lots
of tools and automatisms to make your program light and crystal
clear.<br>
<br>
At the HTML side, it is also much more simple. You design a standard HTML
page in which you put locators for the merge. You will be able to view
your template as a normal Web page. If you don't know HTML, your template
can be designed without problem using a
visual editor such as Dreamweaver
or FrontPage.</td>
</tr>
<tr>
<td colspan="3" align="left" valign="top"><hr></td>
</tr>
<tr>
<td align="left" valign="top">But there are many more benefits:</td>
<td align="left" valign="top"><img src="template_pic3.gif" width="180" height="146"></td>
<td align="left" valign="bottom"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td colspan="2">The Template Engine also enables you to easily manage:</td>
</tr>
<tr>
<td width="10" valign="top">-</td>
<td>The choice of a page among a set of possible pages.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>The inclusion of a page inside another like frames.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>The presentation of data coming from databases such as MySQL, PostgreSQL,
ODBC or SQL-Server.</td>
</tr>
<tr>
<td valign="top">-</td>
<td>Display or hide an area based on the value of a PHP variable.
</td>
</tr>
<tr>
<td valign="top">-</td>
<td>...</td>
</tr>
</tbody></table>
<br>
And a Template Engine is very much appreciated by professionals because
the PHP development can be given to one person and HTML development to
another. Page design can be changed without programming changes like
with any RAD tools (Rapid Application Development) such as Delphi,
Visual Basic,...</td>
</tr>
<tr>
<td colspan="3" align="left" valign="top"><hr></td>
</tr>
</tbody></table>
</body></html>
Jump to Line
Something went wrong with that request. Please try again.