xamppv3.2.2,thinkphp5.0.12 version of the local development environment.
The MONGO database-driven configuration was also performed because the Tp3.2.3+mongo database was used in the previous development project and was also performed locally. The detailed method can be referenced in installing the PHP mongodb extension in Windows.
Then follow the manual to configure the connection parameters, run the program, but prompt error: require mongodb>1.0.
is very confused, PHP extension is clearly supported MONGO, the previous program can also be connected to the normal operation, how to change a frame is not?
And then over and over to check the information, read the manual, found that the problem seems to be driving problems. Previously installed only Php_mongo.dll drive. The error with this prompt is the MongoDB driver problem. Then follow the system version to download the corresponding Php_mongodb.dll, after installation, run the program again. Smooth Connection!!
Experience using ThinkPHP5.0.12 to connect to MONGO databases