Method: c::set
Sets a config value by key
Info
Syntax
c::set($key, $value=null)
Parameters
- $key (string) The key to define
- $value (mixed) The value for the passed key
Example
c::set('db.host', 'localhost');
// sets the hostname for the database for example
c::set('title', 'The Title of your App');
// you can store all the values here you will need later somewhere
c::set(array(
'key1' => 'val1',
'key2' => 'val2',
'key3' => 'val3'
));
// setting multiple variables at once