Initializes configure and runs the bootstrap process.
Bootstrapping includes the following steps:

Returns true if given variable is set in Configure.

Clear all values stored in Configure.

Add a new reader to Configure. Readers allow you to read configuration
files in various formats/storage locations. CakePHP comes with two built-in readers
PhpReader and IniReader. You can also implement your own reader classes in your application.

Used to delete a variable from Configure.

Remove a configured reader. This will unset the reader
and make any future attempts to use it cause an Exception.

Dump data currently in Configure into $key. The serialization format
is decided by the config reader attached as $config. For example, if the
'default' adapter is a PhpReader, the generated file will be a PHP
configuration file loadable by the PhpReader.

Used to read information stored in Configure. Its not
possible to store null values in Configure.

Used to write runtime configuration into Cache. Stored runtime configuration can be
restored using Configure::restore(). These methods can be used to enable configuration managers
frontends, or other GUI type interfaces for configuration.

Returns

Returns

Add a new reader to Configure. Readers allow you to read configuration
files in various formats/storage locations. CakePHP comes with two built-in readers
PhpReader and IniReader. You can also implement your own reader classes in your application.

To add a new reader to Configure:

Configure::config('ini', new IniReader());

Parameters

string
$name

The name of the reader being configured. This alias is used later to
read values from a specific reader.

Parameters

Returns

Dump data currently in Configure into $key. The serialization format
is decided by the config reader attached as $config. For example, if the
'default' adapter is a PhpReader, the generated file will be a PHP
configuration file loadable by the PhpReader.

Usage

Given that the 'default' reader is an instance of PhpReader.
Save all data in Configure to the file my_config.php:

Configure::dump('my_config.php', 'default');

Save only the error handling configuration:

Configure::dump('error.php', 'default', array('Error', 'Exception');

Parameters

string
$key

The identifier to create in the config adapter.
This could be a filename or a cache key depending on the adapter being used.

string
$configoptional'default'

The name of the configured adapter to dump data with.

array
$keysoptionalarray()

The name of the top-level keys you want to dump.
This allows you save only some data stored in Configure.

Returns

Used to write runtime configuration into Cache. Stored runtime configuration can be
restored using Configure::restore(). These methods can be used to enable configuration managers
frontends, or other GUI type interfaces for configuration.