Get Smarty

Donate

Donate Bitcoin Bitcoin
Paypal

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:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

Name

getConfigVars() — 読み込まれた設定ファイル変数を返します。

説明

array getConfigVars(string varname);

パラメータが与えられない場合は 全ての読み込まれた 設定ファイル変数 の配列が返されます。

Example 13.20. getConfigVars()


<?php

// 読み込まれた設定ファイル変数'foo'を取得します
$myVar = $smarty->getConfigVars('foo');

// 全ての設定ファイル変数を取得します
$all_config_vars = $smarty->getConfigVars();

// では見てみましょう
print_r($all_config_vars);
?>

   

clearConfig(){config_load}configLoad() および getTemplateVars() も参照してください。

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 4 plus 5? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
email marketing @ActiveCampaign
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
bulk email software @americaint.com
ASP.NET hosting @aspnethosting.co.uk