Re: Using error message like ALT of an image

2009-04-20 Thread byqsri
Sorry I have found the answer isFieldError(string $fieldName) On Apr 20, 3:35 pm, byqsri wrote: > And if I would that the image is showed only if there is the error? > > On Apr 20, 2:55 pm, "Dr. Loboto" wrote: > > > Try this: > > > echo $html->image( > >     'my_image.gif', > >     array( > >

Re: Using error message like ALT of an image

2009-04-20 Thread byqsri
And if I would that the image is showed only if there is the error? On Apr 20, 2:55 pm, "Dr. Loboto" wrote: > Try this: > > echo $html->image( >     'my_image.gif', >     array( >         'alt' => $form->error( >             'Model.field', >             null, >             array('wrap' => false,

Re: Using error message like ALT of an image

2009-04-20 Thread Dr. Loboto
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, "marco.rizze...@gmail.com" wrote: > I would use the error message

Using error message like ALT of an image

2009-04-20 Thread marco.rizze...@gmail.com
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" gr