Качаем последний релиз Smarty.
Распаковываем папку libs в любое удобное место(можно в корень)
Создаем на веб-сервере(в корне) каталоги: cache, templates, templates_c и conf.
И каталогам cache и templates_c присваиваем права доступа 777
Теперь в каталоге conf создаем конфиг(config.php) для Smarty который подключаем в начале нашего index.php
config.php
index.php
А в папке templates создаем main.tpl.htm следующего содержания:
Время {$DATE}
Распаковываем папку libs в любое удобное место(можно в корень)
Создаем на веб-сервере(в корне) каталоги: cache, templates, templates_c и conf.
И каталогам cache и templates_c присваиваем права доступа 777
Теперь в каталоге conf создаем конфиг(config.php) для Smarty который подключаем в начале нашего index.php
config.php
define('SMARTY_DIR','libs/');
require_once(''.SMARTY_DIR.'/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './templates/';
$smarty->compile_dir = './templates_c/';
$smarty->cache_dir = './cache/';
$smarty->caching=true;
require_once(''.SMARTY_DIR.'/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './templates/';
$smarty->compile_dir = './templates_c/';
$smarty->cache_dir = './cache/';
$smarty->caching=true;
index.php
require_once('conf/config.php');
$smarty->assign('DATE',date("H:i:s"));
$smarty->display('main.tpl.htm');
$smarty->assign('DATE',date("H:i:s"));
$smarty->display('main.tpl.htm');
А в папке templates создаем main.tpl.htm следующего содержания:
Время {$DATE}

Апдейты
Последний