Re: Access parent property from child

From: Date: Fri, 10 Aug 2007 03:00:40 +0000
Subject: Re: Access parent property from child
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-260551@lists.php.net to get a copy of this message
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@gmail.com> 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------

« previous php.general (#260551) next »