您的位置:首页 > 其它

新版的smarty修改注册修改器的方法

2014-04-16 11:18 176 查看
Example 14.41. register modifier plugin
<?php

// let's map PHP's stripslashes function to a Smarty modifier.
$smarty->registerPlugin("modifier","ss", "stripslashes");

?>
In the template, use
ss
to strip slashes.
<?php
{$var|ss}
?>


本文出自 “Freax” 博客,请务必保留此出处http://freax.blog.51cto.com/6614733/1396252
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: