在 Symfony 2.3 项目中集成 Twitter Bootstrap 3.2 [英] Integrating Twitter Bootstrap 3.2 on a Symfony 2.3 project
问题描述
我尝试将 Twitter Bootstrap 3.2 集成到我的 Symfony 2.3 项目中.
I tried to integrate Twitter Bootstrap 3.2 on my Symfony 2.3 project.
刚刚找到了带有 Leafo/lessphp 的 Bootstrap 3.0 教程,但这不再受支持,此外它不适用于 Bootstrap 3.2.我发现没有任何类似的支持最新 Bootstrap 版本的 Leafo/lessphp.
Just found Tutorials for Bootstrap 3.0 with leafo/lessphp , but this is not supported anymore and in addition it is not working for Bootstrap 3.2 . I found nothing similar to leafo/lessphp that supports the latest Bootstrap version.
有没有办法将 Bootstrap 3.2 集成到 Symfony 2.3 项目中?
Is there any way to integrate Bootstrap 3.2 on a Symfony 2.3 project ?
问候
推荐答案
这取决于您所说的集成是什么意思:如果您的意思是只包含 CSS 和 JS 文件,只需下载它们,包含它们在您的资产文件夹中,并从您的模板中要求它们.
It depends from what do you mean by integrating: if you mean just including the CSS and JS files, just download them,include them in your assets folder and require them from you templates.
如果您想控制 LESS/SASSS 源的生成方式,您可能对 感兴趣这个包 [在谷歌搜索symfony bootstrap"后神奇地显示为第一个结果].
If you want to have control over the way the LESS/SASSS source is generated, you may be interested on this bundle [which did magically show up as the first result after googling for "symfony bootstrap"].
这篇关于在 Symfony 2.3 项目中集成 Twitter Bootstrap 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!