[PHP] Re: oop problems code

2003-09-18 Thread Greg Beaver
Orlando, Displayer also inherits the constructor from Employee, so you must define function Displayer() to prevent the notices. I don't think you want to extend from Employee with Displayer - it should accept an Employee object, and display the information, perhaps. Regards, Greg Orlando Pozo

[PHP] Re: OOP Problems

2001-07-14 Thread u007
hie.. it's simply u did not declare ur class variable... class ctest { var $owner; function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } hope it works :) regards, James Andrew Kirilenko wrote: Hello! I have following

Re: [PHP] Re: OOP Problems

2001-07-14 Thread teo
Hi u007! On Sun, 15 Jul 2001, u007 wrote: hie.. it's simply u did not declare ur class variable... well, actually you don't have to declare them, you can add members as you go (as opposed to C++ for example) class ctest { var $owner; function ctest($owner) {

Re: [PHP] Re: OOP Problems

2001-07-14 Thread James Tan
oh, i didn't realise how php is as flexible as vb :) yeah.. ops, missed out the owner-test1 does not exist :) thanx for tips :) [EMAIL PROTECTED] wrote: Hi u007! On Sun, 15 Jul 2001, u007 wrote: hie.. it's simply u did not declare ur class variable... well, actually you don't have