I have a config.php that is included to each page. In config I create an array that looks something like:
$config = array();
$config[\'site_name\
config.php
'value',
'key2' => array( 'value', 'can be an', 'array' ),
'database' => array( "username" => "root", "password" => "root")
)
);
config::set( 'my_config', 'the value' );
?>
config.usage.php
the config value for password is ' . $database_credentials['password'];
function additionalFunctionality($database_credentials)
{
echo '
the config value for password is ' . $database_credentials['password'];
}
?>
config.usage.too.php