require("Smarty.class.php"); $smarty =new Smarty(); $smarty->template_dir = "smarty/template/"; $smarty->compile_dir = "smarty/template_c/"; $smarty->config_dir = "smarty/configs/"; $smarty->cache_dir = "smarty/cache/"; $name = "Jas"; $smarty->assign("name", $name); $smarty->display("test.tpl");