Name

unregisterPlugin — 注销插件

说明

void unregisterPlugin(string type,
string name);

该函数将注销通过registerPlugin()注册的插件。 参数如下:

  • type defines the type of the plugin. Valid values are "function", "block", "compiler" and "modifier".

  • name defines the name of the plugin.


Example 14.50. 注销函数

  1. <?php
  2.  
  3. // 我们不希望模板设计者使用"date_now" 函数
  4. $smarty->unregisterPlugin("function","date_now");
  5.  
  6. ?>
  7.  

参见 registerPlugin().

原文: https://www.smarty.net/docs/zh_CN/api.unregister.plugin.tpl