PHP Classes

File: sample_4.php

Recommend this page to a friend!
  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: 19 years ago
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;

?>