I created a symfony 2 project, now I want to include twitter-bootstrap in this project. How to make this inclusion?
I created a symfony 2 project, now I want to include twitter-bootstrap in this project. How to make this inclusion?
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>
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. .