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



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


// 我们不希望模板设计者使用"date_now" 函数



参见 registerPlugin().