dev-master
9999999-devProvides some useful form types
The Requires
by Igor Bodnar
Wallogit.com
2017 © Pedro Peláez
Provides some useful form types
AmaxlabFormBundle provides some useful form types for Symfony2 framework, (*1)
composer require amaxlab/form-bundle
$bundles = array(
...
new Amaxlab\Bundle\FormBundle\AmaxlabFormBundle(),
);
Create new recaptcha for you domain in https://www.google.com/recaptcha/intro/index.html, (*2)
Add this keys to config.yml:, (*3)
amaxlab_form:
recaptcha2:
public_key: 6LfaoQ4TAAAAAOdnLoFZIjBayGa5zUyUOOeNe3y4
private_key: 6LfaoQ4TAAAAAJvOlPjYNgLUJMfNWllKR7zfiJb7
Allow select from entity from standart select or add a new Entity throw attached form, (*4)
Add to you form new field (probably not mapped to entity), (*5)
$form
->add('recaptcha', 'amaxlab_recaptcha2', array(
'mapped' => false,
));
Now form will not passed validation if recaptcha is invalid., (*6)
Provides some useful form types