To find out if a particular index in the registry
has been set, use the static method isRegistered().
Example 673. Example of isRegistered() Method Usage
<?php
if (Zend_Registry::isRegistered($index)) {
$value = Zend_Registry::get($index);
}
To find out if a particular index in a registry
array or object has a value, use the isset() function
as you would with an ordinary array.
Example 674. Example of isset() Method Usage
<?php
$registry = Zend_Registry::getInstance();
// using array access syntax
if (isset($registry['index'])) {
var_dump( $registry['index'] );
}
// using object access syntax
if (isset($registry->index)) {
var_dump( $registry->index );
}




