Yaf_Application
PHP Manual

Yaf_Application::getConfig

(PECL yaf >=1.0.0)

Yaf_Application::getConfigRetrive the config instance

Descrierea

public Yaf_Config_Abstract Yaf_Application::getConfig ( void )

Parametri

Această funcție nu are parametri.

Valorile întoarse

A Yaf_Config_Abstract instance

Exemple

Example #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());
?>

Exemplul de mai sus va afișa ceva similar cu:

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

        )

    [_readonly:protected] => 1
)

Yaf_Application
PHP Manual