Cannot inherit from undefined class?
| From: | Jeffery C. Cann | Date: | Tue, 15 Aug 2000 02:59:24 +0000 |
| Subject: | Cannot inherit from undefined class? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11724@lists.php.net to get a copy of this message | ||
Greetings.
From the PHP manual <http://www.php.net/manual/language.oop.php>.
I
have the 'Cart' class in a file called 'Cart.php'. I have its derived
class, Named_Cart in a file called 'Named_Cart.php'. When I access
'Named_Cart.php' via apache and php 4.0 (Slackware Linux), I get the
following error:
Fatal error: Class named_cart: Cannot inherit from undefined class cart
in /var/lib/apache/htdocs/php/Named_Cart.php on line 2
Both php files are in the same directory. Although the error message
changed the class name from 'Cart' to 'cart', this is not the problem as
I renamed the 'Cart.php' => 'cart.php' and 'Named_Cart.php' to
'named_cart.php'. After renaming, I still get the fatal error.
What gives?
P.S. I could not find any error documentation in the php manual.
Pointers to it if they exist would help.
Thanks
--
Fight UCITA in Colorado!
http://mridanga.com