Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.12 KB

installation.md

File metadata and controls

48 lines (35 loc) · 1.12 KB
sidebar_position
1

Installation

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