Hi,

You need to return the control after calling flash() method in action,
something like

function my_action()
{
    if ($this->data) {
        // some code here

        $this->flash(...............);
        return;
    }

    // remaining code here
}

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Thu, Dec 16, 2010 at 3:11 AM, bram <[email protected]> wrote:

> In the 1.3 book, the controller method flash is compared to the
> redirect method. It states that the only difference is the use of an
> intermediate page with your flash message, before the user gets
> redirected to a given url.
>
> When using the flash method, it looks like there is another
> significant difference in that it doesn't exit your script.
>
> Is this a documentation or an implementation bug? (or something else)
>
> B
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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