Re: Access parent property from child

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

 



ouch... hey it's work rite now... thanks a lot for your help Edward
and Stut, i really apprieciate it...

br///

On 8/9/07, Stut <stuttle@xxxxxxxxx> wrote:
> 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/
>


-- 
Jangan tanyakan apa yang Indonesia telah berikan pada mu
tapi bertanyalah apa yang telah engkau berikan kepada Indonesia

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/IT  d- s: a-- C++ UL P L++ E W++ N* o-- K-
w PS  Y-- PGP- t++ 5 X R++ tv  b+ DI D+ G e+ h* r- z?
 ------END GEEK CODE BLOCK------

-- 
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