LoginSignup
0
0

More than 5 years have passed since last update.

XOOPS Cubeのsite_default.ini, site_custom.iniで設定した値の取得方法

Posted at
$root = XCube_Root::getSingleton();
$value = $root->getSiteConfig('セクション名', 'パラメータ名'));

site_custom.ini
[Foo]
Bar=Baz
$root = XCube_Root::getSingleton();
$value = $root->getSiteConfig('Foo', 'Bar'));
echo $value;
// 出力は Baz

XOOPS_TRUST_PATH/settings/site_default.iniよりもXOOPS_TRUST_PATH/settings/site_custom.iniが優先される。

他にも優先順位ルールがあるのでXOOPS Cubeのiniファイルの優先順位も参照してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0