RE: setFlash issue in 1.3?

2011-06-16 Thread Krissy Masters
Never tried but seen it along the travels. So i cant speak to its effect or
if it'swhat you need but it might get you started.

http://bakery.cakephp.org/articles/webdevbit/2010/12/07/session_setflash_wit
h_cool_jquery_effects

Good luck,

K

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Cruisine
Sent: Friday, June 17, 2011 12:37 AM
To: CakePHP
Subject: Re: setFlash issue in 1.3?

@Krissy : thx for the answer...yeah,u r right...and it's logically
true.. so can u give me an example using javascript to update the
area?

On Jun 17, 9:17 am, "Krissy Masters" 
wrote:
> 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  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
Tutorialshttp://tv.cakephp.org
> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
athttp://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

-- 
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


Re: setFlash issue in 1.3?

2011-06-16 Thread Cruisine
@Krissy : thx for the answer...yeah,u r right...and it's logically
true.. so can u give me an example using javascript to update the
area?

On Jun 17, 9:17 am, "Krissy Masters" 
wrote:
> 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  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 
> Tutorialshttp://tv.cakephp.org
> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 
> athttp://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


RE: setFlash issue in 1.3?

2011-06-16 Thread Krissy Masters
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  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


Re: setFlash issue in 1.3?

2011-06-16 Thread Cruisine
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  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


Re: setFlash issue in 1.3?

2011-06-16 Thread RománMussi
Hello,
check the following:

SessionHelper in 1.3
flash() no longer auto echos. You must add an echo $session->flash();
to your session->flash() calls. flash() was the only helper method
that auto outputted, and was changed to create consistency in helper
methods.

HTH
Regards
Román Mussi

On Jun 15, 10:49 am, john lyles  wrote:
> I have a similar problem and wondering if this is a problem with
> 1.3.10
>
> On May 18, 3:11 pm, Michael Gaiser  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


Re: setFlash issue in 1.3?

2011-06-15 Thread john lyles
I have a similar problem and wondering if this is a problem with
1.3.10


On May 18, 3:11 pm, Michael Gaiser  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


setFlash issue in 1.3?

2011-05-18 Thread Michael Gaiser
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