<?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', 'Fruit'); $smarty->assign('name', array('Apple', 'Lemon', 'Orange')); $smarty->display('sample2-1.tpl'); ?>