PHP Classes

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: 19 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();
 
?>