How to add twitter-bootstrap in a symfony 2 project?

-1

I created a symfony 2 project, now I want to include twitter-bootstrap in this project. How to make this inclusion?

    
asked by anonymous 15.04.2014 / 17:58

2 answers

0

I've never worked with Symfony, but the easy way - that goes for any framework - is to use CDN.

Add the following to <head> of your HTML:

<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

Javascript is optional depending on your need:

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
    
15.04.2014 / 18:04
0

There is a Bundle that provides services, template tags that integrate with twitter among other things that facilitate the integration of the bootstrap in your project: link

But just to clarify are two distinct things, the bootstrap is a CSS library [/ Javascript] that can be integrated into any project, whether symfony or not, you can integrate by directly downloading the source files as quoted in the answer above. .

    
09.05.2014 / 20:55