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(
> >
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,
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
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