FormExtraBundle offer new options for forms in your Symfony2 project.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Form/ValueTransformer
Resources
Validator/Constraints
BeSimpleFormExtraBundle.php
README.markdown

README.markdown

Information

FormExtraBundle offer new validator constraints for your Symfony2 project.

This repository hosts FormExtraBundle that do not belong to the core of Symfony2 but can be nonetheless interesting to share with other developers.

Fork this repository, add your extension, and send a pull request.

Installation

Add FormExtraBundle to your src/BeSimple directory

git submodule add git://github.com/francisbesset/FormExtraBundle.git src/BeSimple/FormExtraBundle

Add FormExtraBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new BeSimple\FormExtraBundle\BeSimpleFormExtraBundle(),
        // ...
    );
}

Register the BeSimple namespace

// app/autoload.php
$loader->registerNamespaces(array(
    'BeSimple' => __DIR__.'/../src',
    // your other namespaces
));

Update your configuration

// app/config/config.yml
be_simple_form_extra: ~

framework:
    validation:
        enabled: true
        annotations:
            namespaces:
                formExtraValidator: BeSimple\FormExtraBundle\Validator\Constraints\