title: Loading Config file in CodeIgniter Model
body: <p>I am try to write code on this way. I wanna make new config file and load items from it</p>
  
  <p>config file </p>
  
  <pre><code>$config['sess_cookie_name']     = 'ci_session';
  $config['sess_expiration']      = 7200;
  $config['sess_encrypt_cookie']  = TRUE;
  </code></pre>
  
  <p>model</p>
  
  <pre><code>function item($key)
      {
          $data = array();
          $config = $this-&gt;config-&gt;item($key);
          foreach ($config as $row){
              $data = $row;
          }
  
          return $data['value'];
  </code></pre>
  
  <p>Am I on right way to do this in correct way?</p>