Hello everyone!
In my Class Script I have:
var $_team
function getTeam(){
return $this->team;
}
Then I have the following in another class:
note: theScript is an Object of class Script.
$team=$this->theScript->getTeam();
print"team: $team";
This should give me "team: Object"
but it doesn't. Instead it gives me "team: "
If I have this statement in the Class Script
$team=$this->getTeam();
print"team: $team";
it prints the correct results "team: Object";
Why is this happening? Any ideas? Any help would be greatly appreciated!! Thank you!