If your submitting the form ajax then odds are your not updating
(refreshing) the whole page. Just the form or div so if your session->flash
is outside of this updated area then its not being updated. You would need
to use javascript to update that.

-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Cruisine
Sent: Thursday, June 16, 2011 11:34 PM
To: CakePHP
Subject: Re: setFlash issue in 1.3?

i have an setFlash issue as well..........whenever i'm using $ajax-
>submit() the setFlash message doesn't appear on my page? what's
wrong ?

On May 19, 2:11 am, Michael Gaiser <mjgai...@gmail.com> wrote:
> This line no longer seems to output a message nor does any other use of
> setFlash.
>
> $this->Session->setFlash('Cookie created. It will expire
> '.$this->Time->niceTime($cookie['expire']));
>
> So when I was using 1.2 my code seemed to work out ok. Since migrating to
> 1.3, I have made sure that Session was defined in my component and helper
> arrays within my app_controller. Using setFlash used to display a message
in
> the next page. Is this still the proper way to use it? Any help on this
> would be greatly appreciated.
>
> ~Michael

-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to