|
Posted by Jacob Atzen on 05/28/05 17:13
On 2005-05-28, lkrubner@geocities.com <lkrubner@geocities.com> wrote:
> The method is in the parent class yet I'd forgotten to call parent::
> in the constructor of the child class. It seems to me that
> method_exists was testing true, though the method was not truly
> available, and then the code died. Adding parent:: to the constructor
> of the child solved the problem. Is this a bug in PHP?
You shouldn't have to call the parent class to get access to its
methods. If class B extends class A then all methods of class A is
available in class B.
--
Cheers,
- Jacob Atzen
Navigation:
[Reply to this message]
|