PHP操作Smarty
来源:互联网 发布:java中的double类型 编辑:程序博客网 时间:2024/05/29 16:59
使用Smarty六步走
① 设置响应头信息(防止出现乱码)
header(‘Content-type:text/html; charset=utf-8’);
② 载入Smarty入口文件(载入Smarty类)
include ‘smarty/Smarty.class.php’);
③ 实例化Smarty类
$smarty = new Smarty();
④ 更改Smarty对象的默认属性(左右分隔符…)
$smarty->属性 = 属性值;
⑤ 分配变量到模板文件(assign方法)
$smarty->assign(‘标记名称’,’替换后的值’);
⑥ 显示输出模板的内容
$smarty->display(‘模板文件的名称’);
0 0
- php,smarty 缓存操作
- php,smarty 缓存操作
- PHP操作Smarty
- php+Smarty的缓存操作
- smarty与php缓存的操作
- php+smarty ,smarty 缓存
- php smarty
- php smarty
- php smarty
- PHP smarty
- PHP smarty
- PHP smarty
- php smarty
- PHP smarty
- PHP smarty
- PHP smarty
- PHP smarty
- smarty操作
- 【解题报告】Educational Codeforces Round 20
- POJ3620Avoid The Lakes
- hibernate4缓存org.hibernate.cache.NoCacheRegionFactoryAvailableException
- 2017前端面试题总结
- 【面试考试中经常出现的集合类型总结】
- PHP操作Smarty
- L1-046. 整除光棍
- 国家出手在医疗机构开辟互联网医疗
- poj解题报告——poj 2575 Jolly Jumpers
- 深入理解javascript原型和闭包(9)——简述【执行上下文】下
- LibSVM 在matlab中的使用
- linux下数据同步rsync
- bzoj1785 [Usaco2010 Jan]telephone
- buck电路