<?php require_once('Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'd:/smartysample/var/templates/'; $smarty->compile_dir = 'd:/smartysample/var/templates_c/'; $smarty->config_dir = 'd:/smartysample/var/configs/'; $smarty->cache_dir = 'd:/smartysample/var/cache/'; $smarty->assign('title', 'var test'); $smarty->assign('msg', 'Good Morning'); $smarty->display('sample1-1.tpl'); ?>