dounei5721 2013-09-03 10:21
浏览 14
已采纳

什么是别名在smarty中意味着什么?

I would like to ask if anyone is familiar with the "h" command on the smarty code?

<input type="hidden" name="category_id" value="<!--{$category_id|h}-->" />

What does the h function mean?

  • 写回答

1条回答 默认 最新

  • duanlushen8940 2013-09-03 11:26
    关注

    The h does not seem to be part of Smarty's standard modifiers or functions. When you navigate to the smarty directory of your project, locate the "plugins" directory and search for a file "modifier.h.php" or "function.h.php" and have a look inside to find out what it does. Smarty comes along with a couple of modifiers and functions, but you are free to add your own, and I guess someone else (if not you) who is working on the same project added this file.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?