I have a class defined. $class = new class. Blah blah blah. And then I have a function on the same page.
I try to call the $class variable from inside my nifty function. Nothing. Just a fatal error about calling a non-object member function.
So I know what that means. $class is no longer defined inside the function. Grug. Re-establishing $class as new class inside the function is a way to prevent this. But unfortunately, I have more functions than I would want to redefine $class as new class. That would be almost defeat my purpose and would send me back to just defining the class as hefty function.
Is there any workaround to this? I've done my research, and have found nothing. I hang my head low, but before I switch back to function work I want to see if I could actually make this work. Any suggestions?