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

Example 14.41. register modifier pluginphp

<?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.ide

<?php
{$var|ss}
?>
相关文章
相关标签/搜索