Emagister/zend-form-decorators-bootstrap — pull request #1 by adepretis (2012-03-19 11:49:01+00:00)
Title: Adding form decorators

Hi,

I modified Twitter_Bootstrap_Form_Vertical to do it's magic in init() not __construct() so that additional form decorators can be added by specific forms. For example the 'ViewScript' decorator.

```php
class My_Form extends Twitter_Bootstrap_Form_Horizontal
{
public function init()
{
$this->addDecorator(
'ViewScript',
array('viewScript' => 'forms/myviewscript.phtml')
);
}
}
```

$this->init() is called by Zend_Form::__construct() so everything is fine.

I recognized to late that you used spaces instead of tabs for indenting - my commit included tabs. If this is a problem, please just revert it back to whitespaces or I can do another pull request.

Furthermore I added a .gitignore with '.DS_Store' ... forgot to create a branch before commiting the above changes :-(