Skip to content

Commit

Permalink
Updating doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 4, 2010
1 parent 7eab3b2 commit 9e32c13
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions cake/libs/configure.php
Expand Up @@ -298,15 +298,19 @@ public static function drop($name) {
}

/**
* Loads a file from app/config/configure_file.php.
* Loads stored configuration information from a resource. You can add
* config file resource readers with `Configure::config()`.
*
* Config file variables should be formated like:
* `$config['name'] = 'value';`
* These will be used to create dynamic Configure vars. load() is also used to
* load stored config files created with Configure::store()
* Loaded configuration infomration will be merged with the current
* runtime configuration. You can load configuration files from plugins
* by preceeding the filename with the plugin name.
*
* - To load config files from app/config use `Configure::load('configure_file');`.
* - To load config files from a plugin `Configure::load('plugin.configure_file');`.
* `Configure::load('Users.user', 'default')`
*
* Would load the 'user' config file using the default config reader. You can load
* app config files by giving the name of the resource you want loaded.
*
* `Configure::load('setup', 'default');`
*
* @link http://book.cakephp.org/view/929/load
* @param string $key name of configuration resource to load.
Expand Down

0 comments on commit 9e32c13

Please sign in to comment.