Guest User

Untitled

a guest
Aug 2nd, 2012
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. How does Zend Registry work [closed]
  2. Zend_Registry::set('test', array());
  3.  
  4. class My_Registry
  5. {
  6. static $storage;
  7.  
  8. public static function set($key,$value)
  9. {
  10. self::$storage[$key] = $value;
  11. }
  12.  
  13.  
  14. public static function get($key)
  15. {
  16. return self::$storage[$key];
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment