News Feed
Sections




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

PHPRiot.com:
Zend Framework 101 Zend_Registry
March 16, 2009 @ 08:47:51

The "Zend Framework 101" series continues on the PHPRiot.com blog with this new look at the Zend_Registry component.

In this article in the Zend Framework 101 series I will introduce you to the Zend_Registry class. This class used is to allow you manage variables and objects in the global application namespace. This is used as an alternative to using global variables in PHP. I will show you how to use the Zend_Registry class and also provide a practical example of where it would be useful to use the registry.

You'll need a copy of the framework already up and working to follow along (no installation support here). His "real life" example - a quick fifteen lines of code - shows how to pull a Zend_Db database instances back out of a Zend_Registry object.

0 comments voice your opinion now!
zendframework zendregistry example tutorial zenddb


blog comments powered by Disqus

Similar Posts

ServerGrove Blog: Spooling emails with Symfony2 on VPS and Shared Hosting

PHPRiot.com: Translating Text Using the Google Translate API and PHP, JSON and cURL

Konr Ness' Blog: Zend_Config Benchmark - JSON, Array, INI, XML, YAML

Stefan Mischook's Blog: Object Oriented PHP Tutorial Released

Lorna Mitchell's Blog: Building A RESTful PHP Server: Routing the Request


Community Events





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


conference tool podcast list voicesoftheelephpant release security artisanfiles community laravel opinion interview series symfony introduction version framework language library composer

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