Login   Register  
PHP Classes
elePHPant
Icontem

File: example6.1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Chaves  >  IS Layout  >  example6.1.php  >  Download  
File: example6.1.php
Role: Example script
Content type: text/plain
Description: Example 6.1
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 2004-03-02 03:08
Size: 353 bytes
 

Contents

Class file image Download
<?php
require_once "../islayout.php";

$lay  = new IS_Layout('example6.htm');
$slay = new IS_Layout('example6.1.htm');
// Includes the object $slay in $lay
$lay->inc($slay);

$month=date("m");
$day=date("d");
$year=date("Y");

$lay->replace('month',$month);
$lay->replace('day',$day);
$lay->replace('year',$year);

$lay->display();

?>