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

Asked

Viewed 210 times

-1

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

2 answers

0

There is a Bundle that provides services, template tags that integrate with twitter among other things that facilitate the integration of bootstrap in your project: http://bootstrap1.braincrafted.com/

But just to clarify are two different things, the bootstrap is a CSS library[/Javascript] that can be integrated to any project, whether it Symfony or not, vc can integrate directly downloading the sources as quoted in the answer above..

0


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

Include the following in <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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.