|
Posted by Jerry Stuckle on 10/17/06 02:45
tatsudoshi wrote:
> Hello,
>
> I have this class http://pastebin.com/807571, where I set some variables on
> __construct. Originaly I set the $total_? variables when the function
> showLayout() was called. I know pastebin is having problems, so if you can't
> get the code, I will upload it in plain text on my own server.
> This function is called from a page object, which is called from a
> controller and so on.
> Doing it this way meant that all variables set during the showLayout()
> function, were set to null, next time I opened the object.
> Then I set it up like it is now, where I set all call variables doring
> __construct and this worked fine.
> But now the problem is, that the last values added to the class variables
> from the showLayout() function are not added.
>
> Is this a bug in PHP5 or am I doing something terribly wrong here?
>
> Best regards, tatsudoshi
>
>
The real question here is - how are you opening the object? Are you
creating a second object or are you referencing the existing object.
The code you're using to access it is also very important.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|