So as most of you know the HtmlHelper::tagErrorMsg method has been
deprecated and the new method to use is FormHelper::error.
I want the error message to appear ABOVE the input field, but it
appears below by default. I then put in the extra form->error() call
and now I get the message above AND below the field.
How can I force the error message to appear ABOVE the input field?
Anything to do with the before, after options you send as arguments to
input()??
Thanks in advance!
j
Code is below...
------------
View
------------
echo $form->error('username');
echo $form->input('username', array('size' => '15', 'label' =>
'Username'));
------------
Model
------------
var $validate = array(
'username' => array(
'rule' => 'alphaNumeric',
'message' => 'Only letters and numbers please'
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---