CodeIgniter Forums

Full Version: Has anyone used the mongoQB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Marcelo Wanderley[/eluser]
Anyone have any experience with integration with CodeIgniter MongoDB?

I watched a lib called MongoQB found very interesting, but could not integrate.


hugs,

El Forum

[eluser]Aken[/eluser]
We've used this one, no problems with it: https://github.com/alexbilbie/codeignite...db-library

El Forum

[eluser]Marcelo Wanderley[/eluser]
Lab Technician,

I would use this lib, but I contacted Alex Bilbie and he said not to use that more Lib. He said to use the new Lib MongoQB he is writing.

Commented that this updated and is in constant bug fixes.

Only, I could not integrate with codeigniter.

  What do you think we see together?

Hugs.

El Forum

[eluser]Aken[/eluser]
You'll need to modify the library a bit to be compatible with CI's traditional library loading.

Or, just use it manually with traditional PHP (using require(), $mongo = new \MongoDb\Builder, etc.).

El Forum

[eluser]Marcelo Wanderley[/eluser]
to use the traditional way you need to create a file inside the folder and import the file Lib Build?

Could show how to do?


Thank you.

El Forum

[eluser]Unknown[/eluser]
I used the mongodb native driver from php.net. Then I created a model class to wrap round calls to create Mongo objects. Very simple.

El Forum

[eluser]Marcelo Wanderley[/eluser]
Summer Student

I'm a little beginner, would you show an example of how I can do?

Will I be able to use all functions of the table Builder similar to active record?

Could you help again?

Thank you.

El Forum

[eluser]ramirors[/eluser]
Also ask your server provider if your server has mongo drivers....webfaction doesnt, site5 does.