Login   Register  
PHP Classes
elePHPant
Icontem

Template Handler

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Rob Thomson
Name: Rob Thomson <e-mail contact>
Packages: 1 Browse all classes by Rob Thomson Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: ???
All time rank: 162169 in United Kingdom United Kingdom
Week rank: 1063 Up45 in United Kingdom United Kingdom Up


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Rob Thomson  >  Template Handler  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Template Handler
Base name: template_handler
Description: Template handler class to separate HTML from code
Version: -
PHP version: -
License: Freely Distributable
All time users: 1441 users
All time rank: 2376
Week users: 2 users
Week rank: 1329 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Templates Template processing engines and components View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (57.1%)
Sufficient (67.9%)
Not sure (50.0%)
-
-
-
Not sure (40.4%)
2028
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download all files: template_handler.tar.gz template_handler.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.