access config variable in codeigniter controller

PHP
// config.php
$config['foo'] = 'bar';

// controller
$this->config->item('foo');
Source

Also in PHP: