Skip to content
41 lines (31 sloc) 787 Bytes

ReCaptcha Field (create acount)

Minimal configuration:

# app/config/config.yml
genemu_form:
    recaptcha:
        public_key:  `your public key is required`
        private_key: `your private key is required`

Hardcoding the captcha value (for testing)

You can define a static code for your test environment:

# app/config/config_test.yml
genemu_form:
    recaptcha:
        validation:
            code: 1234

Default Usage:

<?php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        // ...
        ->add('captcha', 'genemu_recaptcha');
}

Extra:

Configuration

Jump to Line
Something went wrong with that request. Please try again.