Create 2 flash layouts, flash_ok.ctp & flash_not_ok.ctp like so(ish): <div id="flash_ok"> <?= $content_for_layout ?> </div> <div id="flash_not_ok"> <?= $content_for_layout ?> </div>
Then style them in your CSS. Pass the id as the 2nd param to setFlash(). On Wed, Mar 26, 2008 at 11:57 PM, John R <[EMAIL PROTECTED]> wrote: > > So .. according to the API, you can send params with setFlash() to be > used in the view. That is fine and dandy .. however, is it possible to > use those params to set the class of the div? The only parameter > flash() allows is the key. > > What I am trying to do is pass a parameter called "class" so I could > show a red box with a big "X" for error and a green box with a nice > checkmark depending on where the setFlash was called. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---