rithis/addthis-bundle

Installs: 97

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:symfony-bundle

dev-master 2012-11-07 10:54 UTC

This package is not auto-updated.

Last update: 2024-06-16 02:41:47 UTC


README

RithisBootstrapBundle

Symfony2 Bundle with Twitter Bootstrap front-end framework and adopted templates.

Installation

Run this command in your project directory:

$ composer.phar require rithis/bootstrap-bundle:@dev

After that enable bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Rithis\BootstrapBundle\RithisBootstrapBundle(),
    );
}

Usage

Bootstrap Files

If you want just include Bootstrap files in your project then run php app/console assets:install and include Bootstrap:

<link rel="stylesheet" href="/bundles/rithisbootstrap/css/bootstrap.min.css">

Base Template

You can extend our base template RithisBoootstrapBundle::base.html.twig with Bootstrap included for fast start

Form Theme

We adopt Symfony2 form theme for Bootstrap. You can enable theme globally:

twig:
    form:
        resources:
            - form_div_layout.html.twig
            - RithisBootstrapBundle::form.html.twig

Or you can add theme to specific form:

{% form_theme form with ["RithisBootstrapBundle::form.html.twig"] %}