Saturday, February 28, 2009

customizing error messages from form helper

two questions--

the default class returned from error() within the html helper is
error-message. how do i override this in my controller?

more importantly, how can i inject some html content inside the error div
after a failed form validation?

right now its:

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

i would like it to hypothetically be:

<div class="error-message"><div class="nested-div">error message
here</div></div>

is this possible sanely?

--
View this message in context: http://www.nabble.com/customizing-error-messages-from-form-helper-tp22269823p22269823.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

No comments: