Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.01 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.01 KB

DependentSelectBundle

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:

$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>

Read the documentation