Hey,
it seems like before 1.2 you were able to send errorMessage from the
controller to the view by simply setting:
$this->set('errorMessage', 'There was an error');
This message was then automatically rendered with the appropriate css
class from cakePHP's default css file at the top of the page like a
flash message.
However, in 1.2 this doesn't work anymore :-( The only way I get to
output error messages is by:
$this->Session->setFlash('There was an error!');
$this->render();
$this->exit();
My problem now is, that all these flash messages are rendered with the
same css class (same background, same font color), which makes it hard
to differentiate between an information and an error flash message.
Is there any way to bring back the traditional way to output error
messages? If not, is there a way to define css classes for a flash
message?
Regards,
Sebastian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---