Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

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().

Comments
No comments for this page.

Advertisement