I'm trying to avoid this snippet of code which appears when validation
fails. The 1 is because the message is zero length.

<div class="error-message">1</div>

The div is forcing a new line in the form, thereby screwing up the
layout. My intention instead is to change the colour of the label
text. I detect the validation error with $this-
>validationErrors['Model'] and conditionally surround the input with a
<span>.

I didn't have this problem last time I used validation, but for the
life of me I can't see what I'm doing differently.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to