Yes I know this is not the first bootstrap extension and this will not be the last, but I found this useful so I published it;) The extension is not a module or a component, only a few widgets and some static helper classes (for buttons, labels, images with captions etc.). So it should work with other bootstrap extensions well. It does not include the bootstrap css (but the JS). Feel free to criticize, download, use and so on.
Another part of the extension is to apply the bootstrap style to the default yii widgets, like CGridView, CListView, CDetailView etc.
Here are some basic examples (a full list of screenshots and examples is available at the GitHub wiki):
<?php echo EBootstrap::ibutton("Do something", $url = '#', $type = 'primary'); ?>
<?php
echo EBootstrap::imageCaption(EBootstrap::thumbnailSrc(230, 200), '', 'Lorem Ipsum', 'Lorem ipsum dolor sit amet...', array(
EBootstrap::ibutton('Primary', '#', 'primary'),
EBootstrap::ibutton('Button', '#'),
));
?>
<?php $this->widget('EBootstrapFlashMessages'); ?>
- Extension
- GitHub