sunra/tw-bootstrap-bundle

Twitter Bootstrap for Symfony2. 包含并使用 composer 打包

安装: 28

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

语言:CSS

类型:symfony-bundle

dev-master 2015-08-13 04:26 UTC

This package is auto-updated.

Last update: 2024-09-14 04:18:50 UTC


README

版本 3.3.4, 2.3.2

Symfony2 包含并使用 composer 打包

https://github.com/sunra/tw-bootstrap-bundle

安装

  1. 将以下内容添加到 composer.json 的 "require" 部分
"sunra/tw-bootstrap-bundle": "dev-master"

并运行

composer.phar update
  1. 将以下内容添加到 app/AppKernel.php
new Sunra\TwBootstrapBundle\SunraTwBootstrapBundle()
  1. 运行
app/console assets:install

使用

...
<link href="{{ asset('bundles/sunratwbootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
...
<script src="{{ asset('bundles/sunratwbootstrap/js/bootstrap.min.js') }}"></script>
...