Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function on a non-object
#7

[eluser]eggshape[/eluser]
I am confused now too. I thought PHP behaved differently. What I said before doesn't even make sense to me. I agree that you are calling it as a static function even without the keyword in the definition, so I take it in PHP4 these things are very loose. I guess it's obviously you don't need a constructor unless you want to do something when you create the object, but why didn't it work before? Ha. %(

Because it only works using the :: , I have to conclude that Artigos hasn't been instantiated properly. Is that right?


Messages In This Thread
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 07:08 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 09:32 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:01 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:10 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:19 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:53 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 11:16 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 02:08 PM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 02:20 PM
Fatal error: Call to a member function on a non-object - by El Forum - 01-17-2008, 04:21 AM
Fatal error: Call to a member function on a non-object - by El Forum - 09-07-2012, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB