This is a simple module which encapsulates most of the twitter bootstrap gadgets into viewhelpers
-
Add this project and in your composer.json:
"require": { "mschindler83/twitter-bootstrap-module": "dev-master" }
-
Now tell composer to download TwitterBootstrapModule by running the command:
$ php composer.phar update
-
Enabling it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'TwitterBootstrapModule', ), // ... );
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();