smarty3 caching
Posted: Sun Jan 23, 2011 6:24 am
i'm use smarty 3 and write
but {$u} is missing when i add if($smarty->isCached
help please!
Code: Select all
$smarty = new Smarty();
$smarty->config_dir='./smarty/sconfigs/';
$smarty->template_dir='./templates/new/';
$smarty->compile_dir='./smarty/stemplates_c/';
$smarty->cache_dir='./smarty/scache/';
if(!$smarty->isCached('index.tpl','default')) {
$smarty->assign("u",refresh_user_info(),true);
}
$smarty->display('index.tpl','default');
help please!