hey.
following situation:
i have a class A which extends class B. later i generate a variable $this->var in class a. but $this->var is not visible in class B (maybe because i defined it AFTER extending class 😎.
is there a way to make it global, or another way how i can access the variable from class b?
thx
That's a design flaw. If "var" should be seen by class B, the parent class, then why is it in the children class? Just declare it in class B.
Diego
I don't see why you can't do the following...
$this->var = $Var; GLOBAL $Var;
$Var will have the same value as $this->var and then it's being globalized. I haven't tried it, but it seems to be simple logic.
Hope it helps.
Regards, Stezz.