Skip to content Skip to sidebar Skip to footer

Delete Form-control In Form-row Symfony/twig

When i create this builder $builder ->add('categorie', EntityType::class, [ // This field shows all the categories 'class' => Categorie::class,

Solution 1:

It is caused by one of the default form themes of Symfony, I think by default currently it's the bootstrap 4 theme.

To get rid of that class across the whole app you can change the default form theme, e.g. to form div layout:

# config/packages/twig.yamltwig:form_themes: ['form_div_layout.html.twig']
    # ...

The documentation also describes how to remove the class in smaller scope.

Solution 2:

you have to change default theme layout of form or you can create your own custom layout.

Post a Comment for "Delete Form-control In Form-row Symfony/twig"