Help with user login
View Single Post
04-05-2008, 12:45 AM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
There we go, I got my error reporting on. I just have to restart apache twice when I switch php.ini settings for some reason.
Strict Standards: Non-static method testClass::testing() should not be called statically
So it allows it, but it doesn't like it. Coming from a non-object orientated background, I don't fully understand everything I'm doing just yet, primarily I just really like the flow and organization of using PHP's oop so I'm learning as I go. The best (short) explanation of static I found in the past hour was from
Developer.com: An EarthWeb site
Most applications make use of various functions of use throughout the entire application. Because such functions aren't necessarily related to any particular object, they're often placed in a general utility class. However, such a strategy is followed because it's good OO programming practice, and not because we want to invoke a "utility" object (although you could). Rather, we just want to call the method as necessary, while still managing to encapsulate it in some sort of class. Class methods that can be called without first instantiating an object are known as static.
This and a few pages back and forward from it have helped clarify a few matters.
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity