Skip to content
marcelklehr edited this page Jun 18, 2012 · 5 revisions

Config is a very simple way to set and retrieve settings:

Use Config::set to set a value.

<?php
Config::set('directive', 'value');
?>

Use Config::get to retrieve the set value.

<?php
Config::get('directive');
?>

Drivers should use config, but must use a sub group for their own settings, because of eventual naming conflicts. The sub group should use the filename of the component in lowercase:

<?php
Config::set('mysql.directive', 'value');
?>
Clone this wiki locally