Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2005-02-12 00:29
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();
  
?>