smarty 配置
原创wx60da8e0fb49dc ©著作权
©著作权归作者所有:来自51CTO博客作者wx60da8e0fb49dc的原创作品,请联系作者获取转载授权,否则将追究法律责任
$smarty=
new
Smarty();
$smarty ->
setTemplateDir(ROOT.
'templates')
->
setCompileDir(ROOT.
'templates_c')
->
setPluginsDir(ROOT.
'plugins'.DS)
->
setCacheDir(ROOT.
'cache'.DS)
->
setConfigDir(ROOT.
'configs');
$smarty->
caching=
false;
$smarty->
cache_lifetime=
60*
60*
24;
$smarty->
left_delimiter=
'{';
$smarty->
right_delimiter=
'}';
$smarty->
assign(
"title",
"测试用的网页输出");
$smarty->
display(
"test.tpl");
上一篇:frameset示例
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
AntSword配置
此文描述AntSword工具安装操作。
初始化 加载器 管理工具 AntSword -
smarty常用配置
smaty配置文件,及其各项说明小结
php smarty -
smarty学习
试试
smarty