2017 © Pedro Peláez
 

package symfony2-bootstrap

Integrates Bootstrap 3.1 with Symfony 2.4

image

cbc/symfony2-bootstrap

Integrates Bootstrap 3.1 with Symfony 2.4

  • Sunday, March 30, 2014
  • by Cameron Condry
  • Repository
  • 1 Watchers
  • 4 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Symfony2-Bootstrap3

BootstrapBundle looks to integrate Bootstrap 3 with a Symfony2 v2.4 project. The base implementation hooks into the twig system, overridding the form templates and base html container to use base Bootstrap 3 styles. The Bundle also includes jQuery 1.10.* from a CDN with a local fallback., (*1)

Installation

Add the project to your composer file., (*2)

composer.json
{
    "require": {
        "cbc/symfony2-bootstrap": "1.1.*"
    }
}

Add the Bootstrap bundle to AppKernal and include the template., (*3)

/app/AppKernel.php
new CBC\Bundle\BootstrapBundle\BootstrapBundle()
/app/Resources/views/base.html.twig
{% extends 'BootstrapBundle::base.html.twig' %}

Defined Blocks

{% block meta %}
Contains base html tags.
{% block stylesheets %}
Contains base styles for Bootstrap bundle. Implement {{ parent() }} when overriding.
{% block title %}
Contains the page meta title.
{% block nav %}
Optional block before the content, outside of the container, but inside the wrap.
{% block body %}
Wrapper for the container.
{% block header %}
Adds a header before the content area.
{% block content %}
Base content area inside the container.
{% block footer %}
Optional block after the content, outside the container and wrap.
{% block javascripts %}
Contains base javascript for Bootstrap bundle. Implement {{ parent() }} when overridding.

The Versions

30/03 2014

dev-master

9999999-dev

Integrates Bootstrap 3.1 with Symfony 2.4

  Sources   Download

MIT

The Requires

 

by Avatar Cameron Condry

30/03 2014

v1.1.0

1.1.0.0

Integrates Bootstrap 3.1 with Symfony 2.4

  Sources   Download

MIT

The Requires

 

by Avatar Cameron Condry

30/03 2014

dev-develop

dev-develop

Integrates Bootstrap 3.1 with Symfony 2.4

  Sources   Download

MIT

The Requires

 

by Avatar Cameron Condry

13/11 2013

v1.0.1

1.0.1.0

Integrates Bootstrap 3 with Symfony 2.3+.

  Sources   Download

MIT

The Requires

 

by Avatar Cameron Condry

12/11 2013

v1.0.0

1.0.0.0

Integrates Bootstrap 3 with Symfony 2.3+.

  Sources   Download

MIT

The Requires

 

by Avatar Cameron Condry