File: Example2/index.php

Recommend this page to a friend!
  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: 15 years ago
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.
?>

For more information send a message to info at phpclasses dot org.