Skip to content

ConfigSectionsPatch

Derek Jones edited this page Jul 5, 2012 · 9 revisions

Category:Core::Deprecated

Note: This patch has been removed in favour of using ConfigLoadPatch

Migrating

Instead of having different sections for one config file, the identical behaviour can be created by changing:

config/adodb.php:

$config['dsn'] = 'mysql://.....';

to:

config/adodb.php:

$config['adodb']['dsn'] = 'mysql://.....';

This item is still accessable as an array with $config->item('adodb');

Clone this wiki locally