Sorry I have found the answer isFieldError(string $fieldName)
On Apr 20, 3:35 pm, byqsri <[email protected]> wrote: > And if I would that the image is showed only if there is the error? > > On Apr 20, 2:55 pm, "Dr. Loboto" <[email protected]> wrote: > > > Try this: > > > echo $html->image( > > 'my_image.gif', > > array( > > 'alt' => $form->error( > > 'Model.field', > > null, > > array('wrap' => false, 'escape' => false) > > ) > > ) > > ); > > > On Apr 20, 5:40 pm, "[email protected]" > > > <[email protected]> wrote: > > > I would use the error message form a data validation like ALT of an > > > image but I can't to understand ho can I do it? > > > Has somebody a idea to o it? > > > Many Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
