title: Dynamically updating config data codeigniter
body: <p>I have created my custom config file to store information about site such as if it is online or offline like-vice.</p>
  
  <p>For that I have created new file in config folder and stores default values in global $config[] array with my own index. </p>
  
  <p>I want to update these config data dynamically with admins control eg. he can select to put site in offline mode.</p>
  
  <p>For that I have used function</p>
  
  <pre><code>$this-&gt;config-&gt;set_item('config_array_index','value_to_set');
  </code></pre>
  
  <p>but, I don't know why it is not working for me ?</p>
  
  <p>I am not able to see any update in my config file. Also I am autoloading my config file.
  Am I missing something?</p>