kabuto / dependent-select-bundle
This bundle helps to create dependent AJAX fields for Symfony forms
Installs: 1 762
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 20
Type:symfony-bundle
Requires
- php: >=5.6.0
- symfony/symfony: ^2.8 || ^3.0
Suggests
- sonata-project/admin-bundle: master-dev
- sonata-project/doctrine-orm-admin-bundle: master-dev
This package is auto-updated.
Last update: 2024-12-12 10:12:21 UTC
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 kabuto/dependent-select-bundle
Add the bundle to your AppKernel.php:
$bundles = [ //... new Evercode\DependentSelectBundle\DependentSelectBundle(), ];
Import routes
// app/config/routing.yml
dependent_select:
resource: '@DependentSelectBundle/Resources/config/routing.xml'
Update your configuration
Add form theme for twig
twig:
...
form:
resources:
- 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>