liz/dependent-select-bundle
最新稳定版本:v1.0.6
Composer 安装命令:
composer require liz/dependent-select-bundle
包简介
This bundle helps to create dependent AJAX fields for Symfony forms
README 文档
README
This is an improved part of ShtumiUsefulBundle. It discontinues all of its features except the dependent select form. There are lots of new parameters and features (will be documented soon) implemented in DependentFilteredEntity.
Install using Composer:
./composer require evercodelab/dependent-select-bundle
Add the bundle to your AppKernel.php:
This is needed only for Symfony version less than 4
$bundles = [ //... new Evercode\DependentSelectBundle\DependentSelectBundle(), ];
Import routes
// app/config/routing.yml
//or if using Symfony >= 4 just create the file route\dependent_select.yaml
dependent_select:
resource: '@DependentSelectBundle/Resources/config/routing.xml'
Update your configuration
Add form theme for twig
twig:
...
form:
resources:
- DependentSelectBundle::fields.html.twig
or if using Symfony > 4 just create a new file in packages/dependent_selet.yaml and add
twig:
form_themes:
- DependentSelectBundle::fields.html.twig
Load jQuery to your views (if not yet)
<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
Read the documentation
统计信息
- 总下载量: 1.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-05