> {% if form.field.errors|length > 0 %}
When I do that, I get "Method "errors" for object
"Symfony\Component\Form\FormView" does not exist."

> You have to set the correct data in your *object* which is used to
> populate the form.
>
> $object->setProperty('default');
>
> or
>
> private $property = 'default';
I'm not using any object to populate the form, do I have to each time?
It is for a search form.
It seems to work with:
'data' => array('value1' => true, 'value2' => true)
but I don't know why it is not rendered. It is weird because I don't
see any reference to the option 'data' in the source code.

Thanks for your quick reply,

-- 
Vincent

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to