Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_3.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_3.php  >  Download  
File: sample_3.php
Role: Example script
Content type: text/plain
Description: Example 3
Class: Basic Template
Regular expression matching based template engine
Author: By
Last change:
Date: 2005-04-25 02:07
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_3.html');

echo 
$template->result;

?>