Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #110 from fabiocarneiro/add-custom-view-helper-to-…
Browse files Browse the repository at this point in the history
…docs

Description of the ignoredViewHelper config option
  • Loading branch information
neilime committed Nov 11, 2014
2 parents f1d5b3d + a05e905 commit f14118a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Installation
);
```


* Edit layout file `module/Application/view/layout/layout.phtml`, to render head scripts :

```php
Expand Down Expand Up @@ -378,6 +379,20 @@ The class attribute "label" is auto added to the label container and "label-defa
<?php
$this->label('label message',array('class' => 'label-primary','tagName' => 'a'));
```

## Ignore custom view helpers

By default, this module tries to add form-control class to every form element. There are some elements, like checkboxes, radios and buttons, that does not use that class in bootstrap. This config allows you to tell the render method to ignore your custom form view helper and do NOT add that class.

return [
'twbbundle' => [
'ignoredViewHelpers' => [
'viewhelpername'
]
]
];


## Elements

__TwbBundle__ provides new elements to supports Twitter Bootstrap potential.
Expand Down

0 comments on commit f14118a

Please sign in to comment.