smirik/bootstrap-bundle

一个简单的包,可以将 bootstrap css 和 js 文件添加到项目中,并将标准模板添加到表单中。

这个包的官方仓库似乎已经不存在,因此该包已被冻结。

安装次数: 19,835

依赖关系: 0

建议者: 1

安全性: 0

星标: 2

关注者: 2

分支: 2

开放问题: 0

语言:JavaScript

类型:symfony-bundle

v2.3.2.2 2013-06-26 12:47 UTC

This package is not auto-updated.

Last update: 2021-07-09 22:06:42 UTC


README

简介

此包为 symfony2 应用提供简单的 Twitter bootstrap 功能。

功能

  • 添加 bootstrap.css
  • 添加 bootstrap.js
  • 添加 fields.html.twig 用于表单主题(支持 Twitter bootstrap)

要求

  • Symfony 2+ 且包含 twig。

安装

将包添加到您的 composer.json 文件中

{
    "require": {
        "smirik/bootstrap-bundle": "*"
    }
}

添加到您的 AppKernel.php 文件中

    new Smirik\BootstrapBundle\SmirikBootstrapBundle(),

如何使用

包还提供了两个 twig 函数用于包含 css 和 js

  {{ bootstrap_css() }}
  {{ bootstrap_js() }}

路线图

  • 欢迎评论、拉取请求、审查、分支!

许可

MIT.