PHP 8.3.0 RC 6 available for testing

Yaf_Application::getConfig

(Yaf >=1.0.0)

Yaf_Application::getConfig获取 Yaf_Config_Abstract 的实例

说明

public Yaf_Application::getConfig(): Yaf_Config_Abstract

参数

此函数没有参数。

返回值

Yaf_Config_Abstract 的实例

示例

示例 #1 Yaf_Application::getConfig() 示例

<?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
)
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top