PHP Classes

File: Example1/index.php

Recommend this page to a friend!
  Classes of Volkan Küçükçakar   DEV Template Class   Example1/index.php   Download  
File: Example1/index.php
Role: Example script
Content type: text/plain
Description: Example 1
Class: DEV Template Class
Template engine with theme and insert support
Author: By
Last change:
Date: 18 years ago
Size: 458 bytes
 

Contents

Class file image Download
<?
   
//Example 1 - Simple Usage
   
   
require('../class.DevTemplate.php');
   
$template=new DevTemplate();
   
$date=date("F j, Y, g:i a");//date to insert
    //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("date=$date"));
   
//Also you can send "insert" parameter as string if there is only one

?>