简体   繁体   中英

MongoDB Library for CodeIgniter (pecl mongodb, not mongo )

I just install php mongodb driver by "pecl install mongodb", and the phpinfo page shows mongodb module, that means the module installed successfully, but when I use the code:

"if ( ! class_exists('Mongo') && ! class_exists('MongoClient'))
{
show_error("The MongoDB PECL extension has not been installed or enabled", 500);
}"

in the library file of codeigniter, it shows the error, then I guess maybe this is just for mongo, not for mongodb, so is there any codeingiter library for mongodb?

enable both

  • extension=php_mongo.dll
  • extension=php_mongodb.dll

in php.ini file

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