Ethna Smarty関数内での設定ファイル内容の取得

投稿者:

Ethna外でのfunctionからEthnaの設定ファイルを取得する場合
$ctl = $GLOBALS[‘_Ethna_controller’];
$config = $ctl->getConfig();
$config->get(‘xxx’);
これでconfig内容が取得できます

Thank you for reading this post, don't forget to subscribe!