Yaf_Application::getConfig

(Yaf >=1.0.0)
Retrive the config instance
public Yaf_Config_Abstract Yaf_Application::getConfig ( void )
Returns:

A Yaf_Config_Abstract instance

Examples:
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());
?>

The above example will output something similar to:

Yaf_Config_Simple Object
(
    [_config:protected] => Array
        (
            [application] => Array
                (
                    [directory] => /home/laruence/local/www/htdocs/application
                )

        )

    [_readonly:protected] => 1
)
doc_php
2016-02-24 16:07:15
Comments
Leave a Comment

Please login to continue.