News Feed
Sections




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

Raphael Stolt's Blog:
Using MongoHq in Zend Framework based applications
March 17, 2010 @ 09:16:20

In a new post today Raphael Stolt shows you how to use MongoHq, a cloud-based hosting service, to host a Zend Framework application that uses the MongoDb as a backend. The tutorial focuses on the bootstrapping process to make the framework play nicely with its hosting environment.

Since [MongoHq] went live a few weeks ago I signed up for the small plan and started to successfully re-thinker with it in an exploratory Zend Framework based application. [...] Therefore the following post will show how to bootstrap such an instance into a Zend Framework based application and how to use it from there in some simple scenarios like storing data coming from a Zend_Form into a designated collection and vice versa fetching it from there.

He shows how to create a new resource to make the MongoDb connection available through the entire application, to be used as needed. The resource creates the MongoDb connection based on the options from the config file and catches any exceptions that might happen along the way. As mentioned, he also includes a Zend_Form example that stores some proposal information in a collection in the database.

0 comments voice your opinion now!
mongodb mongohq zendframework tutorial


blog comments powered by Disqus

Similar Posts

Bill's IIS Blog: PHP on IIS7 w/FastCGI

Zend Developer Zone: Zend_Controller_Action, Now With Parameters!

Matthew Turland's Blog: Splitting PHP Class Files

JSLabs Blog: How to write an image gallery script in PHP

Zend Developer Zone: Accepting Credit Card Payments with OXID eShop CE and AlertPay


Community Events





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


introduction list interview zendserver podcast deployment tips framework api release series community code language threedevsandamaybe symfony bugfix development laravel conference

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