<?php
require_once('idtpl.class.php');
//second flag as true allows class to store data of all templates
$template = new IDtpl('templates/',true); //<--- here
//Preparation some example data to display
$title= 'Page title';
$variable= 256;
$data = array(
array('title'=>'Link one', 'link'=>'http://google.com/', 'text'=>'some description...'),
array('title'=>'Link two', 'link'=>'http://google.com/', 'text'=>'some description...'),
array('title'=>'Link three', 'link'=>'http://google.com/', 'text'=>'some description...'),
array('title'=>'Link four', 'link'=>'http://google.com/', 'text'=>'some description...')
);
$template->define('title', $title);
$template->define('links', $data);
$template->define('var', $variable);
$template->template('header.tpl');
$template->template('content.tpl');
$template->template('footer.tpl');
$template->display();
echo $template->exectime();
?>
|