<?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);
|