Login   Register  
PHP Classes
elePHPant
Icontem

File: sample/sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of unknown man  >  Gedar Template Engine  >  sample/sample1.php  >  Download  
File: sample/sample1.php
Role: Example script
Content type: text/plain
Description: sample file
Class: Gedar Template Engine
Compiling template engine with plug-in support
Author: By
Last change:
Date: 2005-10-28 06:41
Size: 556 bytes
 

Contents

Class file image Download
<?php
include "../GedarTemplate.inc.php";
$list = array( 
        array
        (
         
"name"=>"ali",
         
"family"=>"masoudi",
         
"age"=>"24",
         
"job Title"=>"software Developing"
         
),
        array
        (
         
"name"=>"hamed",
         
"family"=>"gaeeni",
         
"age"=>"24",
         
"job Title"=>"software Developing"
         
),
        array
        (
         
"name"=>"mahmood",
         
"family"=>"Karimi",
         
"age"=>"24",
         
"job Title"=>"Server Admin"
         
),
        );
$Template = new Template("sample1.htm","../template/");
$Template->assign("list",$list);
$Template->show(false,"ali.html");
?>