大家好,我新学smarty,看到有很代码都有类似
$smarty->template_dir = '../smarty/templates/';
$smarty->compile_dir = '../smarty/templates_c/';
$smarty->config_dir = '../smarty/configs/';
$smarty->cache_dir = '../smarty/cache/';
的设置,还有cache时间,定界符等,我想知道这些设置是一次设置就全局OK,还是每个脚本都要包含这些语句,多谢!
$smarty->template_dir = '../smarty/templates/';
$smarty->compile_dir = '../smarty/templates_c/';
$smarty->config_dir = '../smarty/configs/';
$smarty->cache_dir = '../smarty/cache/';
的设置,还有cache时间,定界符等,我想知道这些设置是一次设置就全局OK,还是每个脚本都要包含这些语句,多谢!
我也在刚学习smarty