Method: c::set

Sets a config value by key

Info

Syntax

c::set($key, $value=null)

Parameters

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