xiidea/easy-form-bundle
Composer 安装命令:
composer require xiidea/easy-form-bundle
包简介
A Symfony2 Bundle provide some extra form types.
README 文档
README
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:
- 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' ));
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-12