Re: Access parent property from child
| From: | Stut | Date: | Thu, 09 Aug 2007 11:44:07 +0000 |
| Subject: | Re: Access parent property from child | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260507@lists.php.net to get a copy of this message | ||
Suprie wrote:
function getDB()
{
return $this->$db;
}
There should not be a $ before db. It should be $this->db. That's why PHP is telling you the property is empty... because it is.
-Stut
--
http://stut.net/