If you're using the FormHelper, you can specify 'error' => false
in the $options array when doing $form->input()
or $form->radio()
, or in the $form->create();
call if you're using that (this will turn off errors for ALL elements in the form though). That will turn off default error messages. You can then manually check for errors like so:
if ($form->error('ModelName.field_name')) {
echo $form->error('ModelName.field_name');
}
You can add options while doing the specific error call - add div wrappers, class names, whatever you need.