philas Posted January 23, 2011 Share Posted January 23, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/225394-smarty3-caching/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.