PHP Classes

File: example6.php

Recommend this page to a friend!
  Classes of Daniel Chaves   IS Layout   example6.php   Download  
File: example6.php
Role: Example script
Content type: text/plain
Description: Example 6
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 20 years ago
Size: 358 bytes
 

Contents

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

$lay = new IS_Layout('example6.htm');
$slay = new IS_Layout('example6.1.htm');

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

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

// Includes the object $slay in $lay
$lay->inc($slay);

$lay->display();

?>