Method: c::get
Gets a config value by key
Info
Syntax
c::get($key=null, $default=null)
Parameters
- $key (string) The key to look for. Pass false to get the entire config array
- $default (mixed) The default value, which will be returned if the key has not been found
Return (mixed)
The found config value
Example
c::get('db.host', 'localhost');
// get the hostname for the database and take the localhost if it's not defined.
echo c::get('title');
// sample output: 'The Title of your App'