smarty template display()
Posted: Thu May 05, 2005 3:52 am
The display function is not working
my director structure is d:\projects\websites\test
and smarty class is placed at d:\projects\websites\test\smarty
i am using smarty-2.5.0
my director structure is d:\projects\websites\test
and smarty class is placed at d:\projects\websites\test\smarty
i am using smarty-2.5.0
Code: Select all
define('SMARTY_DIR',"smarty/");
if(include(SMARTY_DIR.'Smarty.class.php'))
echo "success";
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->template_dir = 'smarty/templates';
$smarty->compile_dir = 'smarty/templates_c';
$smarty->cache_dir = 'smarty/cache';
$smarty->config_dir = 'smarty/configs';
$smarty->assign('Username', 'John Doe');
$smarty->display('index.tpl');