Hzllo
I hope i understand your question...
The setFlash method takes a second argument which is a layout for the
Flash message.
So you just have to create a .ctp (eg. "warning_message.ctp") file in
app/view/layout/ with your html code you want and
e($content_for_layout) and then you call it using :
$this->Session->setFlash('Please correct it"', "warning_message");
Guillaume
On 18 fév, 15:30, designvoid <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to create multiple flash messages ie an error message and a
> success message, I have it to show the error message and the standard
> flash, but the standard has a div around it and my own error one just
> dumps the passed error... I'm using the stable release not the beta...
>
> Can anyone advise me on how to make them both show in the div but with
> different classes?
>
> TIA,
>
> toby.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---