2017 © Pedro Peláez
 

symfony2-component form

Additional components for the Symfony2 form components

image

lrotherfield/form

Additional components for the Symfony2 form components

  • Thursday, March 31, 2016
  • by lrotherfield
  • Repository
  • 6 Watchers
  • 22 Stars
  • 98,447 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Additional Form Components

This collection of classes add functionality to the Symfony2 Form component., (*1)

Installation

To install the form component simply add it to your composer.json requirements:, (*2)

"require": {
        "lrotherfield/form": "2.0.x-dev",
}

And then run composer.phar update, (*3)

Hidden entity type

To use the hidden entity type you need to register it as a service in your config.yml or a services.yml file:, (*4)

services:
    lrotherfield.form.type.hidden_entity:
        class: Lrotherfield\Component\Form\Type\HiddenEntityType
        arguments:
            - @doctrine.orm.entity_manager
        tags:
            - { name: form.type, alias: hidden_entity }

You can use then use the type with the form builder:, (*5)

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder
        //...
        ->add('example', 'hidden_entity', array(
                "class" => "Lrotherfield\\Bundle\\ExampleBundle\\Entity\\ExampleEntity"
            ));
    ;
}

The only additional requirement is the "class" option which must be a fully qualified namespace to the entity that you want to be used in the transformation, (*6)

The Versions

31/03 2016

dev-master

9999999-dev

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form

31/03 2016

2.0.0

2.0.0.0

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form

31/03 2016

dev-legacy

dev-legacy

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form

31/03 2016

1.1.2

1.1.2.0

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form

30/08 2013

1.1.0

1.1.0.0

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form

01/08 2013

1.0.0

1.0.0.0

Additional components for the Symfony2 form components

  Sources   Download

MIT

The Requires

 

form