Login   Register  
PHP Classes

Template Handler: Template handler class to separate HTML from code

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 (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,504 All time: 2,422 This week: 1,584Up
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: 168274 in United Kingdom United Kingdom
Week rank: 1877 Down80 in United Kingdom United Kingdom Down

  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,504All time:2,422
 This week:0This week:1,584Up
 User Ratings  
 All time