Config

marcelklehr edited this page Jun 18, 2012 · 5 revisions
Clone this wiki locally

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');
?>