2017 © Pedro Peláez
 

symfony-bundle form-bundle

Provides some useful form types

image

amaxlab/form-bundle

Provides some useful form types

  • Tuesday, October 13, 2015
  • by zyuskin_en
  • Repository
  • 2 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AmaxlabFormBundle

AmaxlabFormBundle provides some useful form types for Symfony2 framework, (*1)

Install

0. Add to composer.json

composer require amaxlab/form-bundle

1. Add bundle to AppKernel.php

$bundles = array(
    ...
    new Amaxlab\Bundle\FormBundle\AmaxlabFormBundle(),
);

2. Configure

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

Form Types

1. select_or_add

Allow select from entity from standart select or add a new Entity throw attached form, (*4)

2. amaxlab_recaptcha2

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)

The Versions

13/10 2015

dev-master

9999999-dev

Provides some useful form types

  Sources   Download

The Requires

 

by Igor Bodnar