[eluser]tpiscotti[/eluser]
Hello!
I too am having this same problem with adding 'database' to the autoload.php file specifically on my local development setup. Everything works just fine on my remote host.
I'm starting with a very clean, new installation of CI version 1.7.0 and doing everything EXACTLY as stated in the User Guide. I've even started over a couple of times by deleting my CI installation and re-copying a new installation into my htdocs root. Still, same problems.
I've been going through the forum and trying various suggested solutions but to no avail still.
Here is a profile of my development environment:
- Windows XP Pro
- Apache 2.2.11
- mod_rewrite IS ENABLED (I always have this enabled)
- All statements of AllowOverride are set to All
- PHP 5
- MySQL 5.1
- CodeIgniter 1.7.0, index.php and the /system folder of core files are copied to a test site area on my computer at: C:\Apache\htdocs\blogtest
My pages otherwise render just fine when I leave the setting as:
Code:
$autoload['libraries'] = array('');
However, when I add the database library in as stated in as:
Code:
$autoload['libraries'] = array('database');
...I then get a blank page.
When I view the source to see if there are any error messages, I see nothing. There is no source code either. Blank view page AND blank source code.
I even wrote a separate non-CI test page to test connection to the database to make extra sure and was able to do so without errors so I know I'm using the correct database connection credentials.
Another thing I've noticed and have read that other users have noticed (but still cannot actually find an answer) is that there doesn't seem to even be a Database.php class file in the /system/libraries directory. My assumption may be wrong (please correct me if it is) but I thought that was where $autoload['libraries'] was looking for any libraries being called.
If I forgot to list additional info on how my environment is set up, please let me know.
Any assistance is greatly appreciated!!!! I'm pulling my hair out on this one.
Thank you!!
- Tony