You could pass the information to the controller through the AJAX call.

On Wed, Sep 16, 2009 at 3:17 PM, Marcelo Andrade <[email protected]> wrote:
>
>> On Sep 14, 1:46 am, Marcelo Andrade <[email protected]> wrote:
>>> Hi there,
>>>
>>> I'd like to use ajax->remoteTimer to update a status
>>> message in the view.  The main action is a big loop
>>> in which I set the current index to a session key with
>>> $this->Session->write('MyController.currentval, $i).
>>>
>>> But when I try to read this session key inside the
>>> remoteTimer's related action, the value isn't set.
>>> I changed the Security.level to medium but doesn't works.
>>>
>>> What I'm doing wrong?  Any help is appreciated.
>
> On Mon, Sep 14, 2009 at 3:18 AM, Dr. Loboto <[email protected]> wrote:
>>
>> I think Cake do actual write to session when send response to the
>> client. So if main action is not finished yet, its session changes are
>> not applied.
>
> I see.  But in that case, what's the alternative to get
> the information about the current iteration in the loop?
> Write to a plain file?
>
> Thanks.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> http://mfandrade.wordpress.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to