Use BraincraftedBootstrapBundle for Twig forms without Assetic compilation

One of my favourite features of Bootstrap is the form styles, which I’ve wanted to incorporate into various Symfony2 Bootstrap applications I’ve been working on. The BraincraftedBootstrapBundle has a really robust set of styles for Symfony forms but also attempts to throw Bootstrap into Assetic. I’m not a fan of this, I use bootstrap’s SCSS repository and I’m happy managing the dependancy through bower.

In order to stop BraincraftedBootstrapBundle from injecting this into assetic, throw this in your config.yml:

braincrafted_bootstrap:
    auto_configure:
        assetic: false
        twig: true
        knp_menu: false
        knp_paginator: false

Posted

in

by