PHP Classes

Template Handler: Template handler class to separate HTML from code

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-11-20 (11 years ago) RSS 2.0 feedStarStarStar 41%Total: 1,522 This week: 1All time: 2,435 This week: 1,153Up
Version License Categories  
template_handler 1.0Freely DistributableTemplates
Description Author  

The template handler class is an efficient way of separating HTML from your PHP code.

This class works on a simple bases of setting template "objects" that are contained within the template file. For instance:

Within a template, define an object this way: {content} .

Then, use $template->setObject('content',$content); to replace the {content} tag with the $content variable.

Objects can be set multiple times within the same script with each "setObject" content appending to the previous. Additionally, the template can also contain PHP code, and this will be correctly evaluated and displayed.

For more detailed explantaion view README.TXT file.

Picture of Rob Thomson
Name: Rob Thomson <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 169974 in United Kingdom United Kingdom
Week rank: 918 Up35 in United Kingdom United Kingdom Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file README.TXT Doc. Readme File
Plain text file template_handler.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,522All time:2,435
 This week:1This week:1,153Up
 User Ratings  
 All time