fulgurio / twitter-bootstrap-bundle

Symfony FulgurioTwitterBootstrapBundle

安装: 17

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

3.1.1 2014-04-06 14:36 UTC

This package is not auto-updated.

Last update: 2024-09-28 15:18:05 UTC


README

此包将与使用Twitter Bootstrap的Symfony 2其他包一起使用。

安装

步骤 1: 使用composer下载FulgurioTwitterBootstrapBundle

即将推出

步骤 2: 启用包

在kernel中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Fulgurio\TwitterBootstrapBundle\FulgurioTwitterBootstrapBundle(),
    );
}

如何使用

很简单,只需在您的模板中使用 {{ asset('bundles/fulguriotwitterbootstrap/css/bootstrap.css') }} 来包含bootstrap文件(在这种情况下为bootstrap.css)。