RE: [PHP] add functions to a class

2006-09-21 Thread Ford, Mike
On 21 September 2006 10:19, Thomas Munz wrote: > This will not work. > > $this->bla(); > > This is a PHP Syntax and tries to get the Class method, PHP dont look > for a variable name at all! > > It seams me strange also, that you try this, you should create the > method for the class itself, o

Re: [PHP] add functions to a class

2006-09-21 Thread Thomas Munz
This will not work. $this->bla(); This is a PHP Syntax and tries to get the Class method, PHP dont look for a variable name at all! It seams me strange also, that you try this, you should create the method for the class itself, or extend it. But this shoul work: class Test { function Test