Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 960 Bytes

UPGRADE 2.1.md

File metadata and controls

44 lines (34 loc) · 960 Bytes

UPGRADE to 2.1

JQuery Chosen

Widget option cannot specify the choice type anymore, you have to append the widget in the type name instead :

Before :

$formBuilder
    ->add('country', 'genemu_jquerychosen', array(
        'widget' => 'country',
));

Now :

$formBuilder->add('country', 'genemu_jquerychosen_country');

JQuery Autocompleter

Same instructions than Chosen.

Routing

Routing is defined in xml files instead of annotations (to remove the depency with SensioFrameworkExtraBundle)

Before :

# app/config/routing.yml
genemu_base64:
   resource: "@GenemuFormBundle/Controller/Base64Controller.php"
   type:     annotation

Now :

# app/config/routing.yml
genemu_base64:
   resource: "@GenemuFormBundle/Resources/config/routing/base64.xml"

Captcha

The 'position' option has been removed, if you had it set to 'right', you should add your own template for this type.