"No parent in this context"?
| From: | venome at gmx dot net | Date: | Tue, 10 Apr 2001 23:30:37 +0000 |
| Subject: | "No parent in this context"? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48100@lists.php.net to get a copy of this message | ||
Calling the method parent::insert() from a class the ancestor of which truly
has a method insert() itself, I get the error
"Fatal error: No parent class available in this context in bla.php on line
...".
I know this isn't very much information, but the whole project is big and
would take time to be explained. So my question is: In what particular
"context" do errors like this occur? I KNOW that my respective class HAS a parent,
it's declared like "class blabla extends bla". and bla HAS the method I call.
What's wrong?
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net