I am starting a new CodeIgniter project and I get a 404 error when I autoload the database class. Has anyone else run into this issue. What is the cause of it? I would appreciate any advice. Also开发者_开发知识库 I have started with a new project and it worked. I encountered the issue when I added database to the autoload list...
Thanks
How familiar are you with arrays? in /application/config/autoload.php, your $autoload['libraries'] array should include 'database'.
If you have no other libraries autoloading, it should look like this:
$autoload['libraries'] = array('database');
FYI: Please post what you've tried next time you ask a question - but welcome to SO!
精彩评论