Skip to content

whatson-web/RecaptchaBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Bundle

JS

Insérez la librairie Google avec la balise :

<script src='https://www.google.com/recaptcha/api.js'></script>

Config

wh_recaptcha:
    public_key: ''
    private_key: ''

Mise en place sur un formulaire

FormType

Ajouter un champ dans le formulaire, ex :

->add(
    'recaptcha',
    RecaptchaType::class
)

Thème

Appliquer le thème au formulaire :

{% form_theme form with ['my_base.html.twig', 'WHRecaptchaBundle:Form:fields.html.twig'] %}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published