I was thinking something like that.
Thanks a lot for the help guys! Davy On Mar 16, 12:24 am, Gonzalo Servat <[email protected]> wrote: > On Sun, Mar 15, 2009 at 6:33 PM, Davy <[email protected]> wrote: > > > OK. Thx. > > > Another thing. Does cake have a concept of severity for flash messages > > (or any other)? > > > I mean, sometimes you want the message to be an alert, sometimes an > > error, ... > > > Drupal has such a thing... > >http://api.drupal.org/api/function/drupal_set_message/6 > > You could use the 2nd parameter to setFlash() as a way to set different > types of error msgs. Example: > > $this->Session->setFlash('Success!', 'flash_success'); > $this->Session->setFlash('Problem adding user', 'flash_error'); > > .. then you just create your 'flash_success' and 'flash_error' layouts. > > - Gonzalo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
