p2/bootstrap-bundle

Twitter Bootstrap 3.0 themeing for symfony2

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

This package is not auto-updated.

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


README

Version: 2.0.0-BETA

Build Status

Installation

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

Usage

Simply enable the bundle within your AppKernel.php file.

The Bundle will automatically create and provide the following assets for you:

  • @bootstrap_css "css/bootstrap.css" The default twitter bootstrap css
  • @bootstrap_js "js/bootstrap.js" The combined twitter bootstrap javascript library

Configuration

Default configuration:

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: []