Is there any way to change the placement of form validation messages in CakePHP? For instance, I have the following:
In the view:
echo $form->input('fname', array('before' => '<li>', 'label' => 'First Name', 'after' => '</li>'));
In the controller:
'fname' => array('rule' => 'notEmpty', 'message' => 'Please enter your first name.'),
This displays the error message next to the field, but is this enclosed in a DIV or is there a way to enclose the message in a DIV in order to improve its look/positioning?
I could not find anything about this in the documentation.
Thank you in advance for any help!