title: Blank page on auto-loading database library
body: <p><strong>Possible Duplicate: <a href="https://stackoverflow.com/q/4959449/63609">Problem with database in CodeIgniter</a></strong></p>
  
  <p>Alright, I've googled this the last two days to no avail. I'm received a few hits from SO and codeigniter's support forums and they're mostly misleading threads and "oops" mistakes by other people. I actually have two questions, but one I can hold onto for the sake of solving this mind boggler.</p>
  
  <p>My Setup:</p>
  
  <ul>
  <li>FRESH CodeIgniter 2.1</li>
  <li>IIS 7.5, FastCGI+PHP 5.4.4</li>
  <li>Windows 7 Professional x64</li>
  </ul>
  
  <p>Alright so,</p>
  
  <ol>
  <li><p>I added the following line to my "welcome" controller, before the view gets loaded. CodeIgniter spits out the "Unable to load the requested class: database". I tried "Database" too, same thing.</p>
  
  <p><code>$this-&gt;load-&gt;library('database');</code></p></li>
  <li><p>I've tried <code>$autoload['libraries'] = array('database');</code> which yields a blank page.</p></li>
  <li>I've also tried <code>$autoload['libraries'] = array('Database');</code> which yields the preview page as seen in #1. </li>
  <li>I added <code>error_reporting(E_ALL)</code> above the inline load from the welcome controller and nothing else showed up.</li>
  </ol>
  
  <p>I can only come to blame my inexperience with IIS that could be causing the issue.</p>
  
  <p><strong>EDIT:</strong> So, #1 has been fixed, auto-loading database, and, thanks to Ben, I had forgotten about "<code>load-&gt;database(...)</code>" method...</p>
  
  <p><em>Anyway, my current error now is just a white page when the database is loaded via autoload. My code is just set to autoload the database and display the default view provided with CodeIgniter. Removing the database autoload causes the view to show...</em></p>