Updating doc blocks.

This commit is contained in:
mark_story 2010-12-04 10:41:23 -05:00
parent 7eab3b2850
commit 9e32c13cac

View file

@ -298,15 +298,19 @@ class Configure {
} }
/** /**
* 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: * Loaded configuration infomration will be merged with the current
* `$config['name'] = 'value';` * runtime configuration. You can load configuration files from plugins
* These will be used to create dynamic Configure vars. load() is also used to * by preceeding the filename with the plugin name.
* load stored config files created with Configure::store()
* *
* - To load config files from app/config use `Configure::load('configure_file');`. * `Configure::load('Users.user', 'default')`
* - To load config files from a plugin `Configure::load('plugin.configure_file');`. *
* 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 * @link http://book.cakephp.org/view/929/load
* @param string $key name of configuration resource to load. * @param string $key name of configuration resource to load.