On Feb 6, 2008 8:51 AM, johnnyice <[EMAIL PROTECTED]> wrote:
>
> 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()??
- Yes. You have to set 'error' => false in input() method's second argument
array
Code is below...
>
> ------------
> View
> ------------
> echo $form->error('username');
> echo $form->input('username', array('size' => '15', 'label' =>
> 'Username'));
- Above should be changed to $form->input('username), array('size' => 15,
'label' => 'Username', 'error' => false));
--
Regards,
Amit
http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---