mongodb - cakephp: problem installing mongodb driver in cakephp

478 views
Skip to first unread message

varai

unread,
Nov 20, 2011, 11:58:53 PM11/20/11
to mongodb-dev
Hi,

i'm trying to get mongodb to work with cakephp. I'm not sure on where
to place ichikaway's mongodb driver for cakephp. The following is my
directory structure:
under c:/websites/
I have cakephp folder and my project merry_flowers folder.

am i supposed to place the mongodb driver in cakephp/app/plugins or
merry_flowers/plugins?

where am I supposed to add the database connection?
in cakephp/app/config/database.php or merry_flowers/config/
database.php

Any help is much appreciated.

karl

unread,
Nov 21, 2011, 12:10:53 AM11/21/11
to mongo...@googlegroups.com
The mogodb-dev group tends to be used to discuss the MongoDB application itself.

This is probably better asked in the mongodb-user group, or, better, a CakePHP-specific group.

The PHP MongoDB installation instructions is probably what you want to follow:

There's also the readme file for the cakephp mongodb module which is pretty good:

Karl


varai

unread,
Nov 21, 2011, 1:03:02 AM11/21/11
to mongodb-dev
I've already gone through https://github.com/ichikaway/cakephp-mongodb
and i'm still not able to make it work. I'm getting
ConnectionManager::loadDataSource - Unable to import DataSource class
mongodb.mongodbSource [CORE\cake\libs\model\connection_manager.php,
line 185]

http://hk2.php.net/manual/en/mongo.installation.php link is for
installing mongodb on php and that i've already done.

I've already posted my question in mongodb-user group.

Thank you.

karl

unread,
Nov 21, 2011, 2:18:41 AM11/21/11
to mongo...@googlegroups.com
It's my understanding that you clone  ichikaway's repository into your plugin directory.

Karl
Reply all
Reply to author
Forward
0 new messages