PHP 5.6.0RC3 is available

Yaf_Application::getConfig

(Yaf >=1.0.0)

Yaf_Application::getConfigRetrive the config instance

Descrição

public Yaf_Config_Abstract Yaf_Application::getConfig ( void )

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

A Yaf_Config_Abstract instance

Exemplos

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

O exemplo acima irá imprimir algo similar à:

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

        )

    [_readonly:protected] => 1
)
add a note add a note

User Contributed Notes

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