• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone used the mongoQB?

[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.


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

[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?


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.).

[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.

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.

[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.

Also ask your server provider if your server has mongo drivers....webfaction doesnt, site5 does.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.