Re: Can not access object from extended class

2011-09-02 Thread Christian Grobmeier
Mike, the "Elder" constructor is not called by default in PHP. You must use function __construct() { parent::__construct(); ... in your "Young" class, then it should work. Cheers On Fri, Sep 2, 2011 at 5:19 PM, Michael Sole wrote: > Ivan, > > I think the problem may have to do with

RE: Can not access object from extended class

2011-09-02 Thread Michael Sole
Ivan, I think the problem may have to do with the fact we are using a spl_autoload_register to call our classes and then we are calling the logger by manually including the class file into the other class files. Can you provide me with a code example that shows the right way of doing this? Thank