sidebar_position |
---|
1 |
composer require neilime/twbs-helper-module
-
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(); //...
- Copy
bootstrap.css
file (available on Twitter Bootstrap website) into your assets folder and add it in your head scripts.