-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This plugin is not working with Cakephp 2.1.0 Stable #8
Comments
The path to the model needs to be updated to Model/Datasource/MongodbSource.php. This fixed the issue for me. Other paths may need to be updated, as well. |
Yep, you have to update your paths described by @mikeradvak: Then in MongodbSource.php: This got me going on Cakephp 2. Hope that helps. EDIT: |
Also, forked and updated to be 2.0 compatible: https://github.com/mikeradvak/mongoDB-Datasource |
It would be good to update the readme for this fork (got me for a while) Please include in README.markdown: git clone -b cake2.0 git://github.com/ichikaway/cakephp-mongodb.git Mongodb |
This whole thing should actually be re-written to use MongoClient rather than the Mongo object, as Mongo is being deprecated. I may fork and do this if I ever have time or find myself with the smarts to make the change! |
Can I say that this plugin is no longer being maintained for the latest changes of CakePHP and as @benirose mentioned, the new MongoClient class? |
I followed every instruction methodically, and I keep getting this error:
Error: Datasource class mongodb.mongodbSource could not be found.
I thought it had to do with the naming conventions on folders. I tried renaming each folder to Uppercase the first letter but it didn't work.
The text was updated successfully, but these errors were encountered: