Install this library using composer
composer require neilime/twbs-helper-module
Include Twitter Bootstrap assets
With AssetsBundle module (easy way)
- Install the AssetsBundle module
- Install Twitter Bootstrap:composer require twbs/bootstrap
- Edit the application module configuration file
module/Application/config/module.config.php
, adding the configuration fragment below:return [//...'assets_bundle' => ['assets' => ['less' => ['@zfRootPath/vendor/twitter/bootstrap/less/bootstrap.less'],],],//...]; - Edit layout file
module/Application/view/layout/layout.phtml
, to render head scripts://...echo $this->headScript();//...
Manually
- Copy
bootstrap.css
file (available on Twitter Bootstrap website) into your assets folder and add it in your head scripts.