Hi,
I have two classes, the second extends the first. After creating an instance of the second class, say $second, then I would call a method of the parent class, say $second->loadMySQL(). From there, the loadMySQL() method would call a method of $second, say $this->defineVars() (which should be the same as $second->defineVars() ).
But, I run into a problem; it says it is calling an undefined function. So, I went through and double checked everything and it appears okay. Debugging, I found that if I remove the argument sent to defineVars(), it tells me that I am "Missing argument 1 for defineVars()".
Is there a problem or another way to call a method of an extended class? Thanks
[added]
If I echo the result of method_exists($this,"defineVars") it will return true when executed within the loadMySQL() function