Getting All attributes Null

See all posts See thread Reply

Re: Getting All attributes Null new!
by colin, 12 years, 5 months ago
The PHP website says:

For backwards compatibility, if PHP 5 cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class. Effectively, it means that the only case that would have compatibility issues is if the class had a method named __construct() which was used for different semantics.

As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes.

So it should be working, unless you added a namespace to the class.Reply
Re: Getting All attributes Null new!
by klaudius, 12 years, 5 months ago
Ok, I added a namespace, that's why. :)Reply