PHP 5: Template Interface Engine
Yayak Zakaria (contact me)
Template Interface Engine joins back-end code (as business logic layer) and HTML code (known as presentation layer) which are written in separate files. This class implements a template engine that uses regular expressions to locate placeholder marks. It supports template loops and uses event driven callback functions to set variables inside the loop sections. Outside loop sections, the variable values can set directly. The tags used by this engine are enclosed by comment HTML tags, so the templates layout can be edited later by any WYSIWYG HTML editor. Supported tags are: LOOP, IF, ELSEIF, ELSE and INCLUDE. The engine is equipped by configuration file for customization. It also may handles multiple files (such as header, body and footer) and supports '_PIPE' output instead of stdout or as file.
Click here for detailed information about this class on phpclasses.org
Icon
image used by sample5.php and sample5_4.php
Icon
image used by sample5.php and sample5_4.php
Example
template file used by "sample4.php"
Example
template file used by "sample4.php"
Class
the class file engine to interface php code and html files
Conf.
Configuration file for customization.
Class
The class engine for PHP4 Compatibility
Data
sample mysql datasets
Class
additional class file to access mysql db
Doc.
how to use the class
Data
Template file used by sample
Example
The sample script for the add and the edit page.
Example
template file used by "sample2.php"
Example
template file used by "sample3.php"
Example
Sample script for using the updated class
Example
Sample script for using the PHP4 compatibility class
Example
template file used by "sample4.php"
Example
Sample script for using the updated class
Example
The same sample for "sample4.php" but this is for PHP4 Compatibility class
Example
Example on way sorting table method
Example
idem to sample5.php on its for PHP4 compatibility
Example
HTML template layout used by sample5.php and sample5_4.php
Example
Sample template file for "sample3.php" and "sample3_4.php"
Example
template file used by "sample3.php"
Example
template file used by "sample3.php"