Login   Register  
PHP Classes
elePHPant
Icontem

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 (10 years ago) RSS 2.0 feedStarStarStar 41%Total: 1,496 All time: 2,400 This week: 1,384Up
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: 167073 in United Kingdom United Kingdom
Week rank: 1763 Down73 in United Kingdom United Kingdom Equal

  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,496All time:2,400
 This week:0This week:1,384Up
 User Ratings  
 
 All time
Utility:59%StarStarStar
Consistency:68%StarStarStarStar
Documentation:53%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:41%StarStarStar
Rank:2058