bbit/bootstrap-bundle

symfony BBITBootstrapBundle

安装: 9

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:CSS

类型:symfony-bundle

dev-master 2014-03-30 10:44 UTC

This package is not auto-updated.

Last update: 2024-09-14 14:50:28 UTC


README

将包含 jQuery、Bootstrap 和 font-awsome。

步骤 1: 使用 composer 下载 BBITBootstrapBundle

在 composer.json 中添加 BBITBootstrapBundle

{
    "require": {
        "bbit/bootstrap-bundle": "dev-master",
    }
}

现在运行以下命令让 composer 下载捆绑包

$ php composer.phar update bbit/bootstrap-bundle

Composer 将捆绑包安装到项目的 vendor/BBIT 目录。

步骤 2: 启用捆绑包

在内核中启用捆绑包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\BootstrapBundle\BBITBootstrapBundle(),
    );
}

在 TWIG 模板中的使用

{{ insertBootstrap() }}