On Wed, Apr 23, 2008 at 11:04 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > What is gained by using Zend_Registry? Seems to me I could more > easily use the existing PHP $GLOBALS or even $GLOBALS['registry'] if I > wanted/needed a namespace.
Of course you can do that, but Zend_Registry for me offers the advantage of clean maintainable code. Do a couple unsets to your $GLOBALS['registry'] and a dozen checks if a value is set, then hide it in the middle of an application and then let someone else figure out the code. As of when it's used, and where etc.. In general, many things you could achieve by coding it up yourself, but that is not really the point of a framework. Cheers, Till
