p2/bootstrap-bundle

为symfony2准备的Twitter Bootstrap 3.0主题

dev-master 2013-11-25 19:12 UTC

This package is not auto-updated.

Last update: 2020-01-05 16:55:05 UTC


README

版本: 2.0.0-BETA

Build Status

安装

    "require": {
        "p2/bootstrap-bundle": "dev-master"
    }

使用

只需在AppKernel.php文件中启用此包。

该包会自动为您创建并提供以下资源

  • @bootstrap_css "css/bootstrap.css" 默认的twitter bootstrap CSS
  • @bootstrap_js "js/bootstrap.js" 合并的twitter bootstrap JavaScript库

配置

默认配置

p2_bootstrap:
    use_forms: true
    source_path: '%kernel.root_dir%/../vendor/twbs/bootstrap'
    bootstrap_css: 'css/bootstrap.css'
    bootstrap_js: 'js/bootstrap.js'
    forms:
        defaults:
            horizontal: true
            inline: false
            prepend: true
            append: false
            help: ~
            help_type: ~
            info: ~
            info_type: ~
            icon: ~
            grid: [ 4, 8 ]
        allowed_types:
            horizontal: 'bool'
            inline: 'bool'
            prepend: 'bool'
            append: 'bool'
            help: [ 'null', 'string' ]
            help_type: [ 'null', 'string' ]
            info: [ 'null', 'string' ]
            info_type: [ 'null', 'string' ]
            icon: [ 'null', 'string' ]
            grid: 'array'
        allowed_values: []