2017 © Pedro Peláez
 

symfony2-bundle easy-form-bundle

A Symfony2 Bundle provide some extra form types.

image

xiidea/easy-form-bundle

A Symfony2 Bundle provide some extra form types.

  • Monday, January 25, 2016
  • by xiidea
  • Repository
  • 1 Watchers
  • 3 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

EasyFormBundle

A Symfony2 Bundle provide some extra form type., (*1)

Install

  1. Add EasyFormBundle in your composer.json
  2. Enable the Bundle
  3. Use the registered types

1. Add EasyFormBundle in your composer.json

Add EasyFormBundle in your composer.json:, (*2)

{
    "require": {
        "xiidea/easy-form-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:, (*3)

``` bash $ php composer.phar update xiidea/easy-form-bundle, (*4)


Composer will install the bundle to your project's `vendor/xiidea` directory. ### 2. Enable the Bundle ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Xiidea\EasyFormBundle\XiideaEasyFormBundle(), ); }

3. Use the registered types.

Now you can use the registered types in ordinary way. currently available types are:, (*5)

  • hidden_entity, (*6)

    you can add a "hidden_entity" field to the form as follow:, (*7)


$builder ->add('fieldName', 'hidden_entity', array( 'class' => 'Acme\DemoBundle\Entity\YourEntity' ));

The Versions

25/01 2016

dev-master

9999999-dev

A Symfony2 Bundle provide some extra form types.

  Sources   Download

MIT

The Requires

 

symfony2 form type hidden entity