Hazaar\View\Helper
Bootstrap
Bootstrap view helper

This view helper provides some built-in output functionality for producing view content using the Bootstrap style and javascript library. These elements have a nice pleasing style.

For more information on Bootstrap, see: http://twitter.github.com/bootstrap

Summary
MethodsPropertiesConstants
No propertiesNo constants
Methods
button()
button($name, $label, $style = null, $size = null, $args = Array ( ) )

This method can be used to render pleasant looking buttons using style information from the Twitter Bootstrap project. A number of different button styles are available. This method is also 100% compatible with the Font Awesome helper so that you can use FA icons in your button labels.

p(notice notice-info). For information on what button styles are available, see: [[http://twitter.github.com/bootstrap/base-css.html#buttons]]

Here is an example using the Font Awesome helper to include an icon on the button.

<div class="container">
 
    <?=$this->bootstrap->button($this->fontawesome->icon('cog') . ' Settings');
 
?>
 
</div>

p(notice notice-info). Take note of the space before the string label. This is required to add a nice gap between the icon and the label.

buttonGroup()
buttonGroup($buttons, $args = Array ( ) )
import()
import()
init()
init($view, $args = Array ( ) )

Initialise the view helper and include the buttons.css file. Adds a requirement for the HTML view helper.