Zend Registry is temporary global storage area. In zend registry you can save values, object or array. With the reason this is global you can access this storage data in any page, controller etc. This is some this similar to save data in session. It is used with static method.
Zend_Registry::set('username', 'Arya Rastogi');
echo Zend_Registry::get('username'); //output is Arya Rastogi
0 Comment(s)