Get Smarty

Donate

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

Buy cheap glasses from Cheapglasses123.com and save up to 80%.

Where to buy prescription glasses? EyewearCanada.com is your best choice!

Visit www.sport-kick.com for cheap soccer cleats, sneakers and Soccer Jerseys updates

Advertisement

Name

clearConfig() — 清除配置

说明

void clearConfig(string var);

该函数将清除全部的预配置变量。 如果设置了参数,则仅清除指定的配置值。

Example 14.13. clearConfig()


<?php
// 清除全部配置
$smarty->clearConfig();

// 仅清除foobar配置值
$smarty->clearConfig('foobar');
?>

   

参见 getConfigVars(), 预配置变量, 配置文件, {config_load}, configLoad()clearAssign().

Comments
No comments for this page.

Advertisement