src/Core/Configure.php
public static function write($config, $value = null)
    {
        if (!is_array($config)) {
            $config = [$config => $value];
        }

        foreach ($config as $name => $value) {
            static::$values = Hash::insert(static::$values, $name, $value);
        }

        if (isset($config['debug'])) {
            if (static::$hasIniSet === null) {
                static::$hasIniSet = function_exists('ini_set');
            }
            if (static::$hasIniSet) {
                ini_set('display_errors', $config['debug'] ? 1 : 0);
            }
        }

        return true;
    }
public static function write($config, $value = null)
    {
        if (!is_array($config)) {
            $config = [$config => $value];
        }

        foreach ($config as $name => $value) {
            static::$values = Hash::insert(static::$values, $name, $value);
        }

        if (isset($config['debug'])) {
            if (static::$hasIniSet === null) {
                static::$hasIniSet = function_exists('ini_set');
            }
            if (static::$hasIniSet) {
                ini_set('display_errors', $config['debug'] ? 1 : 0);
            }
        }

        return true;
    }
Used to store a dynamic variable in Configure.

Usage:
```
Configure::write('One.key1', 'value of the Configure::One[key1]');
Configure::write(['One.key1' => 'value of the Configure::One[key1]']);
Configure::write('One', [
'key1' => 'value of the Configure::One[key1]',
'key2' => 'value of the Configure::One[key2]'
]);

Configure::write([
'One.key1' => 'value of the Configure::One[key1]',
'One.key2' => 'value of the Configure::One[key2]'
]);
```

@param string|array $config The key to write, can be a dot notation value.
Alternatively can be an array containing key(s) and value(s).
@param mixed $value Value to set for var.

@return bool True if write was successful