Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 33 | | All time: 9,963 This week: 324 |
|
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. | |
 |
|
Innovation award
 Nominee: 2x |
|
Details
EasyFormBundle
A Symfony2 Bundle provide some extra form type.
Install
-
Add EasyFormBundle in your composer.json
-
Enable the Bundle
-
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:
$builder
->add('fieldName', 'hidden_entity', array(
'class' => 'Acme\DemoBundle\Entity\YourEntity'
));
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.