CakePHP Form Helper - Show error class, but not error message

Posted by Jeremy Penrod on Stack Overflow See other posts from Stack Overflow or by Jeremy Penrod
Published on 2012-12-10T22:07:32Z Indexed on 2012/12/10 23:04 UTC
Read the original article Hit count: 137

Filed under:

I'm attempting to customize the error output on the CakePHP 2.0 form helper. Currently, the form renders error messages below the input and applies an 'error' class to the input's label.

I have found that I can either disable error reporting altogether for an input, or output the error class and message.

I would like the error class to be applied to the label of the offending inputs WITHOUT any message below.

How do you turn off the error message outputting for a form, BUT still apply error classes to offending labels?

© Stack Overflow or respective owner

Related posts about cakephp