Login   Register  
PHP Classes
elePHPant
Icontem

File: example3.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  >  example3.php  >  Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: Example 3
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 2004-03-02 02:57
Size: 388 bytes
 

Contents

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

$html=<<<END
<html>
<body>

<p align="center">&nbsp;</p>
<p align="center"><b>Today</b>: [month]/[day]/[year]</p>

</body>
</html>
END;

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

$lay=new IS_Layout($html);

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

$lay->display();
?>