Login   Register  
PHP Classes
elePHPant
Icontem

Template Interface Engine: Template engine based on regular expression.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (27)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-04-03 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,444 All time: 2,490 This week: 1,484Up
Version License Categories  
interface 1.0GNU Lesser General Publ...PHP 5, Templates
Description Author  

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.

Picture of Yayak Zakaria
Name: Yayak Zakaria <contact>
Classes: 1 package by
Country: Indonesia Indonesia
Age: 33
All time rank: 170522 in Indonesia Indonesia
Week rank: 1862 Down33 in Indonesia Indonesia Down

Screenshots  
  • screenshot.png
  Files folder image Files  
File Role Description
Image file asc.bmp Icon image used by sample5.php and sample5_4.php
Image file desc.bmp Icon image used by sample5.php and sample5_4.php
Plain text file footer4.html Example template file used by "sample4.php"
Plain text file header4.html Example template file used by "sample4.php"
Plain text file interface.class.php Class the class file engine to interface php code and html files
Plain text file interface.config.php Conf. Configuration file for customization.
Plain text file interface4.class.php Class The class engine for PHP4 Compatibility
Plain text file interface_sample.sql Data sample mysql datasets
Plain text file mysql.class.php Class additional class file to access mysql db
Plain text file readme.txt Doc. how to use the class
Plain text file sample1.php Example Sample file
Plain text file sample1.tmpl Data Template file used by sample
Plain text file sample2.php Example The sample script for the add and the edit page.
Plain text file sample2.tmpl Example template file used by "sample2.php"
Plain text file sample3.html Example template file used by "sample3.php"
Plain text file sample3.php Example Sample script for using the updated class
Plain text file sample3_4.php Example Sample script for using the PHP4 compatibility class
Plain text file sample4.html Example template file used by "sample4.php"
Plain text file sample4.php Example Sample script for using the updated class
Plain text file sample4_4.php Example The same sample for "sample4.php" but this is for PHP4 Compatibility class
Plain text file sample5.php Example Example on way sorting table method
Plain text file sample5_4.php Example idem to sample5.php on its for PHP4 compatibility
Plain text file sorting.html Example HTML template layout used by sample5.php and sample5_4.php
Plain text file table.html Example Sample template file for "sample3.php" and "sample3_4.php"
Plain text file tablec1.html Example template file used by "sample3.php"
Plain text file tablec2.html Example template file used by "sample3.php"
Plain text file tablex.html Example template file used by "sample3.php"

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,444All time:2,490
 This week:0This week:1,484Up