PHP - Manual: Yaf_Application::getConfig
2024-12-22
(Yaf >=1.0.0)
Yaf_Application::getConfig — 获取 Yaf_Config_Abstract 的实例
此函数没有参数。
示例 #1 Yaf_Application::getConfig()example
<?php
$config = array(
"application" => array(
"directory" => realpath(dirname(__FILE__)) . "/application",
),
);
/** Yaf_Application */
$application = new Yaf_Application($config);
print_r($application->getConfig());
?>
以上例程的输出类似于:
Yaf_Config_Simple Object ( [_config:protected] => Array ( [application] => Array ( [directory] => /home/laruence/local/www/htdocs/application ) ) [_readonly:protected] => 1 )
官方地址:https://www.php.net/manual/en/yaf-application.getconfig.php