PHP Classes

Easy Form Bundle: Add custom form inputs for Symfony 2 form builder

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 34 This week: 1All time: 10,948 This week: 560Up
Version License PHP version Categories
easyformbundle 1.0The PHP License5HTML, PHP 5, Libraries
Description 

Author

This package can add custom form inputs for Symfony 2 form builder.

It provides a configuration file in YML format that defines classes that can define the behaviour of a new custom form input element type.

Applications can add a new form input element by specifying the class that implementes the custom behavior.

Picture of Roni
  Performance   Level  
Name: Roni is available for providing paid consulting. Contact Roni .
Classes: 12 packages by
Country: Bangladesh Bangladesh
Age: ???
All time rank: 279835 in Bangladesh Bangladesh
Week rank: 106 Up2 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 6x

Documentation

EasyFormBundle

A Symfony2 Bundle provide some extra form type.

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:

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

Now tell composer to download the bundle by running the command:

$ php composer.phar update xiidea/easy-form-bundle

Composer will install the bundle to your project's vendor/xiidea directory.

2. Enable the Bundle

<?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:

  • hidden_entity

    you can add a "hidden_entity" field to the form as follow:


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

  Files folder image Files  
File Role Description
Files folder imageDependencyInjection (2 files)
Files folder imageForm (2 directories)
Files folder imageResources (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Read me
Plain text file XiideaEasyFormBundle.php Class Class source

  Files folder image Files  /  DependencyInjection  
File Role Description
  Plain text file Configuration.php Class Class source
  Plain text file XiideaEasyFormExtension.php Class Class source

  Files folder image Files  /  Form  
File Role Description
Files folder imageDataTransformer (1 file)
Files folder imageType (1 file)

  Files folder image Files  /  Form  /  DataTransformer  
File Role Description
  Plain text file EntityToIdTransformer.php Class Class source

  Files folder image Files  /  Form  /  Type  
File Role Description
  Plain text file HiddenEntityType.php Class Class source

  Files folder image Files  /  Resources  
File Role Description
Files folder imageconfig (1 file)

  Files folder image Files  /  Resources  /  config  
File Role Description
  Accessible without login Plain text file services.yml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:34
This week:1
All time:10,948
This week:560Up