Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_4.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bao Nguyen Quoc  >  Basic Template  >  sample_4.php  >  Download  
File: sample_4.php
Role: Example script
Content type: text/plain
Description: Example 4
Class: Basic Template
Regular expression matching based template engine
Author: By
Last change:
Date: 2005-04-25 02:10
Size: 653 bytes
 

Contents

Class file image Download
<?

include_once "basic_template.php";

$template = new basic_template;

$template->dir '.';

$block = array(
    array(
'name' => 'Quoc Bao' 'mail' => 'quocbao.coder@gmail.com') ,
    array(
'name' => 'Quoc Bao' 'mail' => 'quocbao.coder@gmail.com') ,
    array(
'name' => 'Quoc Bao' 'mail' => 'quocbao.coder@gmail.com') ,
    array(
'name' => 'Quoc Bao' 'mail' => 'quocbao.coder@gmail.com') ,
    array(
'name' => 'Quoc Bao' 'mail' => 'quocbao.coder@gmail.com') ,
);

$template->set('title' 'Danh Sa&#769;ch Tha&#768;nh viên');
$template->set_block('members' $block);

$template->output('sample_4.html');

echo 
$template->result;

?>