954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

smarty3 caching

i'm use smarty 3 and write

$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');

but {$u} is missing when i add if($smarty->isCached

help please!

philas
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: