Khandaker Toihidul Islam
Software Engineer
Backend : PHP | Mysql | Symfony | CakePhp | Wordpress | Drupal
Frontend : Node js | Vue js | React Js | Javascript | HTML | CSS | Bootstrap
Tools , Server : Nginx | Apache | Git | Jenkins | Jira | Asana | Silenium | Spira

Bootstrap from in twig

# config/packages/twig.yaml
twig:
    form_themes: ['bootstrap_4_layout.html.twig']
{{ form_row(form.myRadio, {label_attr: {class: 'radio-custom'} }) }}
{{ form_row(form.myCheckbox, {label_attr: {class: 'checkbox-custom'} }) }}
{{ form_row(form.myCheckbox, {label_attr: {class: 'switch-custom'} }) }}

Read more https://symfony.com/doc/4.4/form/bootstrap4.html

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *