Hi Martin,

Great approach! Simple and elegant!

Thank you very much indeed.

On Sep 22, 3:56 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
> Personally I prefer setFlash to flash. (But feel free to try to win me
> over)
>
> $this->Session->setFlash( 'Oups, that did not work!', 'default',
> array(), 'error');
> $this->redirect('somewhere');
>
> This redirects you to an actual page and shows the "flash" as a
> message on that page.
> (I show the Flash in an absolute positioned div centered at the top of
> the page which I let jQuery remove after a few seconds)
>
> The last attribute I send setFlash is the name of a "layout" I wrap
> the message in. Red one for errors, green one for successes... that
> sort of thing. The file is called "flash_error.ctp" and should go in
> the layouts folder but it is not a full layout, just a wrapper-div
> with an id and a class I set.
>
> /Martin
>
> On Sep 22, 4:57 am, park <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Is there any better practice of implementing a nicer-looking flash
> > redirect?
>
> > Many thanks!
--~--~---------~--~----~------------~-------~--~----~
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