Login   Register  
PHP Classes
elePHPant
Icontem

Class: Template Handler

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rob Thomson  >  Template Handler  >  Download .tar.gz .zip  >  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
Related classes: , , , , , ,
Version: -
PHP version: -
License: Freely Distributable
All time users: 1348 users
All time rank: 2381
Week users: 1 user
Week rank: 2467
Picture of Rob Thomson
Author: Rob Thomson <e-mail contact>
Packages: 1 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: ???
All time rank: 155466 in United Kingdom United Kingdom
Week rank: 1634 Down70 in United Kingdom United Kingdom Down


  Detailed description  
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.

 

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

  Rate classes User ratings   Applications   Files Files  

  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%)
1959
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
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.