title: CodeIgniter Loading Database Error
body: <p>When using Codeigniter to load the database, I am getting the following error message in a simple file where I load the database:</p>
  
  <pre><code>An Error Was Encountered
  
  Unable to load the requested class: database
  </code></pre>
  
  <p>The controller for this code is called db.php, and the code for it is as follows:</p>
  
  <pre><code>&lt;?php
  
  class Db extends MY_Controller {
  
      function __construct() {
          parent::__construct();
          $this-&gt;load-&gt;library('database');
  
      }
  
      public function index() {}
  
  }
  </code></pre>
  
  <p>I do not have the database loaded in to autoload.php. I also know that I have the correct database information in my config.php file. My CodeIgniter application is in a subdomain if that might cause any problems. </p>
  
  <p>Any ideas on what could be causing the problem? Thanks.</p>