Login   Register  
PHP Classes
elePHPant
Icontem

File: example_php5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Brant Messenger  >  3SS Template Engine  >  example_php5.php  >  Download  
File: example_php5.php
Role: Example script
Content type: text/plain
Description: PHP5 Example
Class: 3SS Template Engine
Template Class Outputs in String or File
Author: By
Last change:
Date: 4 years ago
Size: 471 bytes
 

Contents

Class file image Download
<?php
require("threessTE.php");

define('EMAIL_DEFAULT','test@test.com');

$t = new threessTE("template.htm");
$t->setContants(); // SETS ALL CONSTANTS

$t->setData('HEAD_TITLE','Welcome!');

if (
$data)
{
   
// Example of getting a template without any variables
   
$t->setData('CONTENT',$t->getFile("newTemplate.htm"));
}
else
{
    
$t->setData('CONTENT','Here is the content.');
}

echo 
$t->returnOutput();
//or $t->writeOutput($destinationFile);