View Single Post
Old 02-04-2009, 10:06 AM   #32 (permalink)
asciant
The Visitor
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
asciant is on a distinguished road
Default

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?
asciant is offline  
Reply With Quote