TwitterBootstrapFormDecorators

Created: 2012-03-23 21:26
Updated: 2013-10-09 17:56
php

README.md

Twitter Bootstrap Form Decorators

Version 0.0.1 Created by Mike Willbanks

Introduction

Twitter Bootstrap Form Decorators is an attempt to implement the Twitter Bootstrap 2.0-wip branch of forms within Zend Framework 2.

Requirements

Current State

Many of the main elements pretty much work... this is really a work in progress right now. What I know does not work:

  • Captcha
  • File
  • Probably other things :)

Installation

Main Setup

  1. Clone this project into your ./vendors/ directory and enable it in your application.config.php file.

Example Form

    <?php
        use \TwitterBootstrapFormDecorators\Form\Form;

        class Base extends Form
        {
            $this->setMethod('POST')
                 ->addElement('hash', 'csrf', array(
                'ignore' => true,
             ));
        }
    ?>
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more