Location: PHPKode > scripts > EasyTemplate > easytemplate/example.php
<?php
include('easytemplate.php');
mysql_connect('localhost','root','');
mysql_select_db('test');


$var = 'Test';
$arr[name] = 'easy';
$arr[version] = 1;
$switch = 2;

for($i=1;$i<22;$i++)
$rows[] = array('id'=>$i,'user'=>'user'.$i);

$rows2 = $rows;

//Create EasyTemplate Object
$easy = New EasyTemplate('templates','easycache');
$easy->Temp = 'templates';
$easy->Cache = 'easycache';
print $easy->display('example.html');
?>
Return current item: EasyTemplate