Login   Register  
PHP Classes
elePHPant
Icontem

File: Example2/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Volkan Küçükçakar  >  DEV Template Class  >  Example2/index.php  >  Download  
File: Example2/index.php
Role: Example script
Content type: text/plain
Description: Example 2
Class: DEV Template Class
Template engine with theme and insert support
Author: By
Last change:
Date: 2006-02-16 07:41
Size: 421 bytes
 

Contents

Class file image Download
<?
    
//Example 2 - Recursively Insert
    
    
require('../class.DevTemplate.php');
    
$template=new DevTemplate();
    
//example of simple usage with only one template file and any number of "inserts".
    //minor_template and morph_tag parameters ignored !
    
$template->express("_page1.html","","",array("hello=HELLO <!--insert:world-->","world=WORLD"));
    
//the word "WORLD" is recursively inserted.
?>