/ Published in: PHP
Managing globals with the registry pattern. This class provides lazy loading functionallity. This means it is possible to add a callback or class (with arguments) which will be called or instanciated when it is being used for the first time.
URL: http://www.freelancephp.net/php-lazy-registry-class/