为自己的应用程序设置目录
Smarty requires four directories which are by default named
templates/
,templates_c/
,configs/
andcache/
smarty需要四个默认的目录,这四个目录的名称使用
templates/
,templates_c/
,configs/
和cache/
Each of these are definable by the Smarty class properties
$template_dir
,$compile_dir
,$config_dir
, and$cache_dir
respectively这些目录是可定义的,通过使用
$template_dir
,$compile_dir
,$config_dir
, 和$cache_dir这个几个变量
It is highly recommended that you setup a separate set of these directories for each application that will use Smarty
为每个单独的应用程序设置这些目录
第一张图片
第二张图片
第三张图片