[eluser]Colin Williams[/eluser]
Did you miss the Loader class documentation in the user guide? It details the many ways to make data available in your View files. Also, there is clear documentation on how to add and use your own config files, but here's the basic rundown.
Add the file
application/config/my_config.php
Code:
$config['an_item'] = 'A value';
$config['another_item'] = 'Another value';
// We must add items to the $config array, not our own made-up variable.
Then to get at these items, we must first load this config file. One way is with the Loader class:
Code:
$this->load->config('my_config');
// See? It's just our config filename without the '.php' extension
// Now, lets use our config items
$value = $this->config->item('an_item');
$value2 = $this->config->item('another_item');