What is the correct way to add bootstrap to a symfony app?

后端 未结 6 610
灰色年华
灰色年华 2021-02-13 13:48

I\'m using symfony framework 3 to develop a web application. I need to add boostrap\'s functionality to my application. I installed bootstrap using the below command. (I\'m usin

6条回答
  •  一生所求
    2021-02-13 14:33

    Since Symfony v2.6 includes a new form theme designed for Bootstrap 3 oficial documentation

    # app/config/config.yml
    twig:
        form:
            resources: ['bootstrap_3_layout.html.twig']
            # resources: ['bootstrap_3_horizontal_layout.html.twig']
    

提交回复
热议问题