PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Julien PACHET   Simplest Template   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: class use example
Class: Simplest Template
Template engine based on simple text replacing
Author: By
Last change:
Date: 18 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?

$template
=new template("",'a');

$title="Title of my first templeted page!";
$body="Body of my page (little short!)";
$tail="Copyright Julien PACHET (lol!)";

$template->replace("CSS_FILE","");
$template->replace("TITLE",$title);
$template->replace("BODY",$body);
$template->replace("TAIL",$tail);

// display!
echo $template->get();

?>