Possible Duplicate: Problem with database in CodeIgniter
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.
My Setup:
- FRESH CodeIgniter 2.1
- IIS 7.5, FastCGI+PHP 5.4.4
- Windows 7 Professional x64
Alright so,
-
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.
$this->load->library('database');
I've tried
$autoload['libraries'] = array('database');
which yields a blank page.- I've also tried
$autoload['libraries'] = array('Database');
which yields the preview page as seen in #1. - I added
error_reporting(E_ALL)
above the inline load from the welcome controller and nothing else showed up.
I can only come to blame my inexperience with IIS that could be causing the issue.
EDIT: So, #1 has been fixed, auto-loading database, and, thanks to Ben, I had forgotten about "load->database(...)
" method...
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...