CakePHP Form Validation Error Placement

servaplus

New Member
Is there any way to change the placement of form validation messages in CakePHP? For instance, I have the following:In the view:\[code\]echo $form->input('fname', array('before' => '<li>', 'label' => 'First Name', 'after' => '</li>'));\[/code\]In the controller:\[code\]'fname' => array('rule' => 'notEmpty', 'message' => 'Please enter your first name.'),\[/code\]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!
 
Back
Top