paella/twitter-bootstrap-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

paella/twitter-bootstrap-bundle

Composer 安装命令:

composer require paella/twitter-bootstrap-bundle

包简介

(yet another) bundle to easily integrate twitter bootstrap css/js libraries. It is based on the phiamo/MopaBootstrapBundle (but meant to be simpler)

README 文档

README

This bundle provides the assets from the twitter bootstrap and the twig theme for forms using the twitter bootstrap.

Installation

Include this repository in your app/deps file:

[PaellaTwitterBootstrapBundle]
    git=http://github.com/Paella/TwitterBootstrapBundle.git
    target=/bundles/Paella/Bundle/TwitterBootstrapBundle

Register the Namespace in the app/autoload.php file :

$loader->registerNamespaces(array(
    'Paella'        => __DIR__.'/../vendor/bundles',
));

Register the bundle in app/AppKernel.php

    public function registerBundles() {
        $bundles = array(
            new Paella\TwitterBootstrapBundle\PaellaTwitterBootstrapBundle(),
        );

Usage

Publish the assets of your application :

php app/console assets:install

Add the assets in you template (available version 1.4.0, 2.0.0, 2.0.2) :

{% block stylesheets %}
<link rel="stylesheet" media="all" href="{{ asset('bundles/paellatwitterbootstrap/[VERSION]/css/bootstrap.[min.]css') }}">
<link rel="stylesheet" media="all" href="{{ asset('bundles/paellatwitterbootstrap/[VERSION]/css/bootstrap-responsive.[min.]css') }}">
{% endblock %}

{% block javascripts %}
<script src="{{ asset('bundles/paellatwitterbootstrap/js/jquery-1.7.min.js') }}"></script>
<script src="{{ asset('bundles/paellatwitterbootstrap/js/jquery-ui-1.8.16.custom.min.js') }}"></script>

<script src="{{ asset('bundles/paellatwitterbootstrap/js/[VERSION]/bootstrap[*].js') }}"></script>

<script src="{{ asset('bundles/wilogmaintenance/js/jquery.treeview.js') }}"></script>
<script src="{{ asset('bundles/paellatwitterbootstrap/js/jquery.tablesorter.min.js') }}"></script>
{% endblock %}

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-08