开发者

Codeigniter issues, w/ Database on autoload

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜