You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I got an error message when I want to integrate javascript. However, I followed the documentation well. I am using symfony 5.2 and the latest version of EWZRecaptchaBundle (dev-master)
An exception has been thrown during the rendering of a template ("Warning: constant(): Couldn't find constant \EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType::RECAPTCHA_API_JS_SERVER").
hello, I got an error message when I want to integrate javascript. However, I followed the documentation well. I am using symfony 5.2 and the latest version of EWZRecaptchaBundle (dev-master)
An exception has been thrown during the rendering of a template ("Warning: constant(): Couldn't find constant \EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType::RECAPTCHA_API_JS_SERVER").
<script type="text/javascript"> $(document).ready(function() { $.getScript("{{ constant('\\EWZ\\Bundle\\RecaptchaBundle\\Form\\Type\\EWZRecaptchaType::RECAPTCHA_API_JS_SERVER') }}", function() { Recaptcha.create("{{ form.recaptcha.get('public_key') }}", "recaptcha-container", { theme: "clean" }); }); }); </script>
Thanks for your help
The text was updated successfully, but these errors were encountered: