Mage::register('my_variable', $myValue);
$myValue = Mage::registry('my_variable');In this example, we retrieve the value of the 'my_variable' variable that was previously registered. This value can now be used in any way necessary within the module. Package library: Mage_Core_Model from the Magento Core library.