napas/form-extra-bundle

Symfony2 extra form field types

Installs: 5 858

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.1.4 2014-06-28 17:26 UTC

This package is not auto-updated.

Last update: 2024-03-26 05:39:50 UTC


README

Extra fields for Symfony2 forms.

Instalation

Add this bundle to your composer.json file:

    {
        "require": {
            "napas/form-extra-bundle": "~0.1"
        }
    }

Register the bundle in app/AppKernel.php:

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

Done!

Field types

##US States choice field

Usage

$builder->add('State', 'us_states');