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:
clearConfig() — 清除配置
void clearConfig(string var);
该函数将清除全部的预配置变量。 如果设置了参数,则仅清除指定的配置值。
Example 14.13. clearConfig()
<?php // 清除全部配置 $smarty->clearConfig(); // 仅清除foobar配置值 $smarty->clearConfig('foobar'); ?>
参见
getConfigVars()
,
预配置变量
,
配置文件
,
{config_load}
,
configLoad()
和
clearAssign()
.