Using the factory pattern (mad rantings of a mind without coffee)
View Single Post
02-04-2009, 11:06 AM
Join Date: Feb 2009
Thanks again for a great article, sorry to rehash old banter, but I have a quick question (probably more some clarification).
Based on the singleton theory if I were to call DBfactory::factory()->query(".."); from anywhere in my application, it would be referring to the one single instance that exists?
So if I'm following correctly, I could essentially call this from anywhere in my application (or any other class) in a similar fashion to a global variable?
View Public Profile
Send a private message to asciant
Find More Posts by asciant