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. 注销函数


<?php

// 我们不希望模板设计者使用"date_now" 函数
$smarty->unregisterPlugin("function","date_now");

?>

   

参见 registerPlugin().