简体   繁体   中英

codeigniter: mongodb library unable to load

I am working with code-igniter in which I want to work with MONGODB at the backend. I used the drivers from https://github.com/huglester/MongoDB-CodeIgniter-Driver ,ie added the config (named mongo_db.php) and library files (named Mongo_db.php) as per instructed.

I load this library in the constructor method of my model. Now the issue is that this library class doesn't load and gives me the following error: "Unable to load the requested class: Mongo_db"

What could be the issue?

I resolved the error.

Turns out, I need to extend my loader class and customize it such that other other "users" libraries can be loaded.

Here's the link to the solution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM