Re: Access parent property from child

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux