新版的smarty修改注册修改器的方法
2014-04-16 11:18
176 查看
Example 14.41. register modifier plugin
本文出自 “Freax” 博客,请务必保留此出处http://freax.blog.51cto.com/6614733/1396252
<?php // let's map PHP's stripslashes function to a Smarty modifier. $smarty->registerPlugin("modifier","ss", "stripslashes"); ?>In the template, use
ssto strip slashes.
<?php {$var|ss} ?>
本文出自 “Freax” 博客,请务必保留此出处http://freax.blog.51cto.com/6614733/1396252
相关文章推荐
- ecshop会员注册页面的Email修改成非必填项方法
- 修改創世紀工作站注册信息和网吧欢迎信息的方法
- 恶意网页修改注册表的12种现象及修正方法 [转]
- NSIS 注册64位控件及修改注册表键的权限方法
- Phpcms V9 管理后台登陆及会员注册登录模板的修改方法
- NSIS 注册64位控件及修改注册表键的权限方法
- ecshop会员注册页面的Email修改成非必填项方法
- 修改操作系统属性中的"注册到"的方法
- Discuz!修改注册用户名长度限制的方法
- 恶意网页修改注册表的十二种现象及解决方法
- 修改维护计划,提示“库没有注册” 解决方法
- smarty的使用和修改包标签方法
- Discuz!X3.2修改用户名注册长度限制的方法
- B2B-Destoon--注册会员公司名称修改方法
- Asp.net 更改Alert样式和后台注册Jquery的Ajax异步提交事件[包括处理前操作、处理后操作(注明:此方法只是作为参考,如有需要可自行修改)]
- ADDOBE 系列软件注册防止服务器验证的HOST文件修改方法
- 修改新版am335x支持1G主频的方法[来自A Xian调试记录]
- DEDE会员注册开启邮箱验证通知正确完整的修改方法
- discuz在线人数修改及注册非法字符提示解决方法
- WordPress注册时不能发邮件,修改程序代码直接显示密码的方法