Method: c::get

Gets a config value by key

Info

Syntax

c::get($key=null, $default=null)

Parameters

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'