$this->Session->setFlash('<p>Whatever message I want to display</p>',
'default', array('class'=>'message update'));
And I change the update class to notice or error depending on what
info I am displaying. My CSS is as follows
div.message {-moz-border-radius:5px; padding:6px 10px; margin:10px 0;
text-align:center;}
div#authMessage, div.message.error {color:#f00; background:#FFE6E6;
border:1px solid #FF9D9D;}
div.message.update {color:#090; background:#ECFFEC; border:1px solid
#090;}
div.message.notice {color:#DFD137; background:#FFFBCF; border:1px
solid #DFD137;}
div.message.site {font-size:90%; color:#090; background:#ECFFEC;
border:1px solid #090;}
div.message.site a {color:#090; font-weight:bold;}
Cricket's implementation looks interesting though.
HTH
Paul
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment