News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Juhana Rasanen's Blog:
Using MongoDB with CodeIgniter
November 05, 2010 @ 11:01:28

On the Juhana Rasanen's blog today there's a new tutorial showing you how to use the popular NoSQL database MongoDB with an application written in the CodeIgniter framework.

Considering using MongoDB instead of a SQL DB in your next CodeIgniter project? Well, we were and decided to take a stab at it, and fairly soon discovered that it is pretty straightforward. Even more so, if you don't try to use CI Active Record, but use native PHP Mongo interface to store and query your data. That suits our case, as we are planning to access the data mostly from Javascript UI over Ajax - in which case it is quite simple to just get the document from Mongo as an array and then serialize it to the UI using PHP JSON functions.

He talks about his extension of CI_Session to handle the session management and user authentication pulled from the MongoDB and used as normal in your application. He's made the package available for for download if you'd like to see how its implemented (there's a README for installation instructions).

0 comments voice your opinion now!
codeigniter framework mongodb database nosql integrate session


blog comments powered by Disqus

Similar Posts

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite

DevShed: Working with MySQL and Sessions to Serialize Objects in PHP (Part 3)

Symfony Blog: symfony 1.0.4 released

Tim Koschuetzki's Blog: CakePHP Pluralize Helper

Alex Bilbie's Blog: MongoDB + CodeIgniter 101 (Part 1)


Community Events











Don't see your event here?
Let us know!


application language security install performance podcast package project unittest example symfony2 release composer hack hhvm introduction facebook framework database component

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework