title: get full array from config files in Codeigniter
body: <p>I did a lot of search for my problem but I did not get anything ..</p>
  
  <p>in codeigniter when I use config files I do that :</p>
  
  <p>my_config.php :</p>
  
  <pre><code>$config['my_title'] = ' My Title Here ' ;
  $config['color']    = ' red ' ;
  </code></pre>
  
  <p>I can retrieve it like this :</p>
  
  <pre><code>$this-&gt;load-&gt;config('my_config', TRUE );
  $data['my_title'] = $this-&gt;config-&gt;item('my_title', 'my_config');
  </code></pre>
  
  <p>My question is : How can I get the full array to deal with it ?</p>
  
  <p>I want the $config as an array to do something like this :</p>
  
  <pre><code> foreach($config as $key=&gt;$val){
            $data[$key] = $val ;
          }
  </code></pre>
  
  <p>so I do not have to write all my variables that in config file like this :</p>
  
  <pre><code>$data['my_title'] = $this-&gt;config-&gt;item('my_title', 'my_config');
  $data['color'] = $this-&gt;config-&gt;item('color', 'my_config');
  </code></pre>
  
  <p>and so on ..</p>
  
  <p>sorry for my broken English !</p>
  
  <p>thanks in advance ;)</p>