Login   Register  
PHP Classes
elePHPant
Icontem

abc template: Template engine that replaces tags in PHP scripts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-08-05 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 551 All time: 5,017 This week: 1,587Up
Version License PHP version Categories  
abc-template 1.0BSD License4.0Templates
Description Author  

This class implements a template engine that replaces tags in PHP scripts.

It can load a template file which can be a PHP script which is executed when the template is loaded.

The loaded template is processed by replacing tags, which are named marks delimited by curly braces, by template variable values.

When template variable values which are arrays, the class iterates the template processing over all values.

The class can display the processed template as the current script output or return the resulting template string.

Picture of Gianluca Zanferrari
Name: Gianluca Zanferrari <contact>
Classes: 16 packages by
Country: The Netherlands The Netherlands
Age: 48
All time rank: 2709 in The Netherlands The Netherlands
Week rank: 58 Up4 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file class_template.php Class main class
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file example_all.php Example example all
Accessible without login Plain text file example_tabular.php Example example tabular
Accessible without login HTML file page.html Data template page
Accessible without login HTML file page_with_tabular.html Data template page
Accessible without login HTML file row.html Data template page

 Version Control Unique User Downloads Download Rankings  
 0%Total:551All time:5,017
 This week:0This week:1,587Up