Added readme and code

This commit is contained in:
2013-07-27 21:02:21 +01:00
parent 6b2d0fa18b
commit 91868a39d2
5 changed files with 256 additions and 0 deletions

18
demo.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
ini_set('display_errors', True);
error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
define('DIR_TEMPLATES', dirname(__FILE__).DIRECTORY_SEPARATOR.'DemoTemplates');
define('DIR_TEMPLATES_COMPILED', false);
require('Template.php');
$t = Template::GetInstance();
$data = array(
'world' => 'You!'
);
echo $t->Render('helloworld',$data);