Welcome Guest, Not a member yet? Register   Sign In
Using MongoDB with CodeIgniter
#2

[eluser]bretticus[/eluser]
Disclaimer: I have never attempted to do this before, but I think you might be going about this the wrong way.

MongoDB fits into the category of the "NOSQL" databases. Which means, there's not much point in trying to use CodeIgniter Active Record period. You could disable AR (and not load database at all) and still use Models to organize your data operations. Either by extending the Model class or by loading a MongoDB library (autoloading would probably be best in that case) and then referencing it inside your Models.

EDIT: looking at some documentation quickly would show that the "driver" mentioned at MongoDB's website, in the case of PHP, is a PHP extension. This typically means that you have to have MongoDB installed on your server (or one close by to connect to remotely) and have the PHP extension installed and loaded. From there, you use PHP MongoDB functions just like any other native PHP functions.


Messages In This Thread
Using MongoDB with CodeIgniter - by El Forum - 10-05-2010, 04:10 AM
Using MongoDB with CodeIgniter - by El Forum - 10-05-2010, 11:41 AM
Using MongoDB with CodeIgniter - by El Forum - 10-06-2010, 12:22 AM
Using MongoDB with CodeIgniter - by El Forum - 10-07-2010, 08:58 PM
Using MongoDB with CodeIgniter - by El Forum - 10-07-2010, 09:39 PM
Using MongoDB with CodeIgniter - by El Forum - 10-07-2010, 10:50 PM
Using MongoDB with CodeIgniter - by El Forum - 10-08-2010, 01:04 AM
Using MongoDB with CodeIgniter - by El Forum - 10-08-2010, 11:58 AM
Using MongoDB with CodeIgniter - by El Forum - 10-09-2010, 07:30 PM
Using MongoDB with CodeIgniter - by El Forum - 10-10-2010, 12:38 PM
Using MongoDB with CodeIgniter - by El Forum - 12-04-2010, 01:49 PM
Using MongoDB with CodeIgniter - by El Forum - 05-01-2012, 11:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB