Hi,

it seems that in previous versions of cakePHP I could at any time set
an errorMessage in the controller by

$this->set('errorMessage', 'There was an error!');

which was then regularly displayed in the view (without me having to
put any code into my view). In 1.2 however, it's not displayed and the
only way I can output error messages at the top of my page is by
employing:

$this->Session->setFlash('There was an error!);
$this->render();
$this->exit();

However, these messages are all rendered with the same css class,
which is pretty stupid, since I want to render error messages with a
different css class than simple information flashes.

So is there any way to bring the old errorMessages back (the css class
is still in the default cakePHP css file)? Or is there a way to define
a css class 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to