[symfony-users] Re: some question for form renderError()

2009-07-12 Thread mlu...@gmail.com
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();

[symfony-users] Re: some question for form renderError()

2009-07-12 Thread mlu...@gmail.com
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

[symfony-users] Re: some question for form renderError()

2009-07-12 Thread mlu...@gmail.com
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

[symfony-users] Re: some question for form renderError()

2009-05-20 Thread ctrlming
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

[symfony-users] Re: some question for form renderError()

2009-05-19 Thread ctrlming
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

[symfony-users] Re: some question for form renderError()

2009-05-19 Thread Frank Stelzer
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