File: example.php

Recommend this page to a friend!
  Classes of thorpe hepburn  >  Thorpe Systems template  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: Thorpe Systems template
Template engine with block loop processing support
Author: By
Last change:
Date: 16 years ago
Size: 495 bytes
 

 

Contents

Class file image Download
<?php

 
require('class.template.php');
 
$tst = new thorpesystems_template();
 
$tst->load('example.html');
 
$tst->parse('head',array('title'=>'thorpesystems'));
 
$tst->parse('user_details',array('name'=>'boo','pass'=>'tester','mail'=>'boo@bob.com'));
 
$tst->parse('user_details',array('name'=>'bob','pass'=>'tester','mail'=>'bob@bob.com'));
 
$tst->parse('user_details',array('name'=>'tai','pass'=>'tester','mail'=>'tai@bob.com'));
 
$tst->parse('foot');
 
$tst->render();
 
?>


For more information send a message to info at phpclasses dot org.