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
Requires
- symfony/symfony: >=2.1
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');