News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Solar Blog:
Using registry_set to auto-register objects
September 23, 2008 @ 08:47:36

In this recent post from the Solar blog, anttih shows how to use the Solar registry to automatically load and register objects when it starts up.

Solar_Registry is a class for storing singleton objects which are used usually for things like SQL objects and the response and request objects. Now what's interesting, is that in the new version of Solar a new configuration key registry_set was added for the Solar arch-class. You can use it to tell Solar to automatically add objects to the registry when it starts up.

He compares the two methods - manual loading and the automatic version and includes a "real world" example of loading up an SMTP object.

0 comments voice your opinion now!
solar framework solarphp registry registryset automatic object



Similar Posts

PHP in Action Blog: Flash messages

Roy Ganor-Shwaartz's Blog: PDT Gets Smarty

Ruzz on Symfony: What is this all about?

Padraic Brady's Blog: Mocks, Stubs, And SimpleTest Wins

SpinDrop.us: Not taking frameworks for granted


Community Events







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


database releases security release framework example job developer zendframework zend PEAR application cakephp code conference book package PHP5 ajax mysql

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