Skip to content

mschindler83/twitter-bootstrap-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bootstrap Viewhelper Module

Introduction

This is a simple module which encapsulates most of the twitter bootstrap gadgets into viewhelpers

Installation

With composer

  1. Add this project and in your composer.json:

    "require": {
        "mschindler83/twitter-bootstrap-module": "dev-master"
    }
  2. Now tell composer to download TwitterBootstrapModule by running the command:

    $ php composer.phar update
  3. Enabling it in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'TwitterBootstrapModule',
        ),
        // ...
    );

Usage

Just call the viewhelper in your view.

Simple label:

echo $this->bootstrapLabel('success', 'Wohoo its a success!!');

Progress bar:

echo $this->bootstrapProgressBar()
    ->setAnimated()
    ->setStriped()
    ->addProgress(50, 'danger')
    ->addProgress(50, 'success')
    ->render();

About

Zend Framework 2 Module that provides Twitter Bootstrap viewhelpers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages