Yaf_Application::getConfig
(Since Yaf 1.0.0.0)
例 11.8. Yaf_Application::getConfig
的例子
<?php $config = array( "ap" => array( "directory" => "/usr/local/www/ap", ), ); $app = new Yaf_Application($config); print_r($app->getConfig('application')); ?>输出
Yaf_Config Object ( [_config:private] => Array ( [ap] => Array ( [directory] => /usr/local/www/ap ) ) )