Posted by Janwillem Borleffs on 10/11/28 11:36
Carramba wrote:
> include 'somefile.php'; //have getObj() with returns object
>
> class myClass {
> var $var;
>
> function myClass() {
> $var = getObj();
> }
> }
>
> then I was trying to use $this->var I ll only get error about unknown
> variable var
>
Using: $this->var would be correct. When this triggers errors, the getObj()
function should be examined.
JW
Navigation:
[Reply to this message]
|