I have now created two errors at one field with max_length=9,
min_length=11 and posting 10 characters.
It seems there always just returned one error.
My work around looks like this:
hasError()): ?>
getError();
It's the same to me.
The returned value isn't an array. You can display the error message
with __toString().
But what happens if there are more than one error to the field.
Michael
On 20 Mai, 10:48, ctrlming wrote:
> Oh my god~..
> I got another question .
> inhttp://www.symfony-project.org/fo
I have the same problem. The reason is getError doesn't return an
array. It's a string. But I don't know what happens if there are more
than one error on one field.
michael
On 20 Mai, 10:48, ctrlming wrote:
> Oh my god~..
> I got another question .
> inhttp://www.symfony-project.org/forms/1_2/e
Oh my god~..
I got another question .
in
http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_rendererror_method_on_a_field
hasError()): ?>
getError() as $error): ?>
when I use like this to print errors,there output none;
"if ($f
thank you, Frank.
But really is too much trouble to do so.
If there is no other way I can only do so
On 5月20日, 下午2时39分, Frank Stelzer wrote:
> Hi,
> you have to decorate your form on your own in this case.
> More details
> here:http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Design
Hi,
you have to decorate your form on your own in this case.
More details here:
http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_rendererror_method_on_a_field
- Frank
Am 20.05.2009 um 07:39 schrieb ctrlming:
>
> in the template, I got some questi