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.


Zend_Registry::set('index', $value);

versus

$GLOBALS['index'] = $value;


$value = Zend_Registry::get('index');

versus

$value = $GLOBALS['index'];


foreach ($registry as $index => $value) {
    echo "Registry index $index contains:\n";
    var_dump($value);
}

versus

foreach ($GLOBALS['registry'] as $index => $value) {
    echo "Registry index $index contains:\n";
    var_dump($value);
}


I really don't see the point.


-- 
Greg Donald
http://destiney.com/

Reply via email to