
smarty
luckninjya
任重而道远
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Smarty学习之基础语法
<br />1)注释<br />{* this is a comment *}<br />2)变量<br />{$foo} {$foo[4]} {$foo.bar} {$foo.$bar} {$foo->bar} {$foo->bar()}<br />{#foo#} {$smarty.config.foo} {"foo"}<br />3) 函数<br /> <br />{config_load file='colors.conf'}<br />{include file='footer.t原创 2010-07-12 17:37:00 · 591 阅读 · 0 评论 -
Smarty学习之安装篇
<br />1) 下载smarty安装包,文档 www.smarty.net<br />2) 将安装包中的lib文件夹放在C:/PHP/PEAR/Smarty/下<br />3) 在网站根目录下创建templates, templates_c, configs, cache这几个文件夹<br />4) 在网站根目录下创建setup.php, 配置好smarty<br /> <br /><br />setup.php<br /><?php<br />require_once('C:/PHP/PEAR/Smar原创 2010-07-12 17:37:00 · 433 阅读 · 0 评论