Login   Register  
PHP Classes
elePHPant
Icontem

File: test_template.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mustafa Berkan BICER  >  MBTemplate Class  >  test_template.php  >  Download  
File: test_template.php
Role: Example script
Content type: text/plain
Description: Template Engine Test File
Class: MBTemplate Class
Process templates replacing tags
Author: By
Last change:
Date: 2008-01-27 14:24
Size: 528 bytes
 

Contents

Class file image Download
<?php

    
include("template.class.php");
    
    
$template_vars=array(
        
'content_title' => 'Test Title',
        
'content_body' => 'Test Body'// If you write 'test_field'=>'file_name.php', this will include a php file into this field.
        
'content_who_added' => 'Administrator',
        
'content_added_date' => '28.01.2008',
        
'content_added_time' => '00:21:00',
    );
    
    
$template=new makeTemplate();
    
$template->loadTemplateFile("content_body.html");
    
$template->putTemplateValues($template_vars);
    
$template->showPage();
    
?>