View Single Post
05-09-2008, 04:12 AM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
You probably already know this, but the static method call has to use the same name as the class you're making the call to. So Database::getInst() will return an error, but EvulDB::getInst() will work fine.
Your correct on how to go about that, but I did notice one other thing - your EvulUser class extends your EvulDB class, so there shouldn't be a need to call an instance of EvulDB from within it. You can just use $this to access all the parent methods and properties.
Oh, also, how come you don't have a local test server set up on your laptop? It saves a hell of a headache tracking down all the little typo's and what not if you can just switch over to your browser and test the latest updates.
The Following User Says Thank You to delayedinsanity For This Useful Post:
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity