PHP Classes

Classes of Rob Thomson

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Rob Thomson (1)  >  Mission progress status  >  Reputation  
Picture of Rob Thomson
Name: Rob Thomson <contact>
Classes: 1
Country: United Kingdom
Age: ???
All time rank: 180080 in United Kingdom
Week rank: 216 Up13 in United Kingdom Up
All time users: 1563
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Template Handler  
Template handler class to separate HTML from code
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.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 58% 66% 52% - - - 41% 3740
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z