Re: Cannot inherit from undefined class?

From: Date: Tue, 15 Aug 2000 03:17:24 +0000
Subject: Re: Cannot inherit from undefined class?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11728@lists.php.net to get a copy of this message
Duh. The answer is to add the base class using the require() function: <?php require ('Cart.php'); class Named_Cart extends cart { var $owner; function set_owner ($name) { $this->owner = $name; } } ?>

« previous php.general (#11728) next »