You must get worse, before you get better!
View Single Post
04-22-2008, 03:39 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
It came together. I'm not a novice, I'm a freakin Jedi.
I figured out what I was doing wrong trying to implement the singleton - I was still thinking in a fairly linear fashion of includes and global variables, and even though I have the proper functionality built into my parent class, I was still using it just like I would an included class.
Now I've got a bunch of work, but it's all syntax. Gotta go through and remove all references to global $database, $form, $etc; and replace it with $database =& kePhoto::getInstance('database');. Something just clicked this morning, and I'm liking this a LOT. Even if it's not being fully implemented properly, it's a damn sight better than what I had before. Now it only calls objects as needed, instead of calling every object, every time, like I had it before. Woo Wooooo.
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity