Hi,

The documentation actually needs updating. The section about calling 
setScriptURLs() is no longer valid. Those values are now set automatically. 
You shouldn't need to put anything in your controller anymore. All you 
should need to do is add a 'recaptcha' field in your buildForm() function 
and then render it in your template.

With beta 1, the way you need to render the field is a little different now 
too:

{% form_theme form.recaptcha 
'EWZRecaptchaBundle:Form:recaptcha_widget.html.twig' %}

{{ form_widget(form.recaptcha, { 'attr': {
    'options': {
        'theme': 'red'
    }
} }) }}

The documentation says to pass the template directly to form_widget() but 
that doesn't work anymore. If I have time I'll do a pull request to update 
the documentation.

Having said all of that, I can't seem to get the validator to be called when 
submitting a form. Symfony seems to completely ignore the constraint and 
always says that the field is valid.

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