What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
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()
.