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

clearConfig() — 割り当てられたすべての設定ファイルの変数をクリアします。

説明

void clearConfig(string var);

割り当てられたすべての 設定ファイルの変数 をクリアします。変数名を指定すると、その変数のみをクリアします。

Example 13.10. clearConfig()


<?php
// 設定ファイルから割り当てた変数をすべてクリアします
$smarty->clearConfig();

// ひとつの変数のみをクリアします
$smarty->clearConfig('foobar');
?>

   

getConfigVars()設定ファイルから読み込まれた変数設定ファイル{config_load}configLoad() および clearAssign(). も参照してください。