Thread: New approach
View Single Post
Old 05-09-2008, 04:12 AM   #18 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

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.
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
Evulness (05-09-2008)