Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fery Putra Tarigan  >  Easy HTML Template Engine  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: an example how to use the class
Class: Easy HTML Template Engine
Template engine that replaces tags in files
Author: By
Last change:
Date: 6 years ago
Size: 285 bytes
 

Contents

Class file image Download
<?php
include("trgTemplate.php");

$comTpl = new trgTemplate();

$_TITLE "Template test";
$_CONTENT "Content for site";

$comTpl->defineTpl("template/index.html");
$comTpl->defineTag("_TITLE_",$_TITLE);
$comTpl->defineTag("_CONTENT_",$_CONTENT);
$comTpl->printTpl();
?>