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