04-05-2008, 12:45 AM
|
#11 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
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:
Quote:
|
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.
-m
|
|
|
|