title: Custom config files - Codeigniter
body: <p>i try to create my custom email config file that includes my email server configuration.</p>
  
  <p>i created it under /config directory and
  the code is below:</p>
  
  <pre><code>&lt;?php
  
  $config = Array(
              'protocol' =&gt; 'smtp',
              'smtp_host' =&gt; 'ssl://smtp.googlemail.com',
              'smtp_port' =&gt; 465,
              'smtp_user' =&gt; 'mertmetinbjk@gmail.com',
              'smtp_pass' =&gt; '*************',
              'mailtype' =&gt; 'html'
          );
  
  
  
  
          $this-&gt;load-&gt;library('email', $config);
          $this-&gt;email-&gt;set_newline("\r\n");
  
  ?&gt;
  </code></pre>
  
  <p>and in order to use it i call in my kayit.php's which is a controller constructor</p>
  
  <pre><code> $this-&gt;config-&gt;load('email'); 
  </code></pre>
  
  <p>However, i get an error like that
  <img src="https://i.stack.imgur.com/kblUp.png" alt="enter image description here"></p>