| ZeldorBlat 2007-06-26, 7:02 pm |
| On Jun 26, 2:21 am, Manny <thebar...@gmail.com> wrote:
> On Jun 25, 5:15 pm, ZeldorBlat <zeldorb...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I left out the rest of the rest of the initialization code for
> brevity. But you're right it would be more appropriate to do that.
> However, it still eludes me why I am not able to import that variable
> using the global operator. I was able to circumvent this by using the
> $GLOBALS array but that in itself is bad practice.
>
> I've changed the code since then to use default initializers in the
> constructor for a default setting, but just out of curiousity and
> pedagogical reasons, why is this happening ?!
It's difficult to say since you haven't (according to you) included
all the code from the constructor.
|