Re: [PHP] OOP Get Parent data

2004-03-11 Thread Stuart
Rolf van de Krol wrote: class session { var $test="TEST"; var $browser; function init() { $this->browser = new browser; } } class browser { function parent_test() { return xxx; } } I tried $this->parent->test but it doesn't work. Can anybody help me? There is no implicit reference created

[PHP] OOP Get Parent data

2004-03-11 Thread Rolf van de Krol
Hi everybody, In the code below are three x-char in the function parent_test of the class browser. What do I have to type there when I want to get the var $test from the session-object. class session { var $test="TEST"; var $browser; function init() { $this->browser = new browser; } } cla