Andy Crain wrote:
Im currently trying to wrap the brain around the Singleton Registry article.This all seems like a perfect case for the singleton pattern. See http://www.phppatterns.com/index.php/article/articleview/6/1/1/ and http://www.phppatterns.com/index.php/article/articleview/75/1/1/ Andy
Wish me luck :)
http://www.trini0.org/index.php
This is based on work seen at http://www.phppatterns.com/index.php/article/articleview/75/1/1/
Yes yes, I know. It uses $GLOBALS, (OO Sin). Father forgive me....
From the article, Im getting lost with the reason/meaning/purpose of the instance() method.
If anyone can clarify it for me, and let me know if my example would need something like it.
So if you care to critique it, feel free, Ill try not to be hurt ;)
Thanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php