This repository has been archived by the owner on Jul 10, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 94
1. Installation
neilime edited this page Nov 4, 2016
·
2 revisions
-
Add this project in your composer.json:
"require": { "neilime/zf2-twb-bundle": "3.*@stable" }
-
Now tell composer to download TwbBundle by running the command:
$ php composer.phar update
- Clone this project into your
./vendor/
directory. - (Optional) Clone the Twitter bootstrap project (v3.*) into your
./vendor/
directory.
-
Enabling it in your
application.config.php
file.return array( 'modules' => array( // ... 'TwbBundle', ), // ... );
-
Include Twitter Bootstrap assets
-
Install the AssetsBundle module(1.0)
-
Install Twitter Bootstrap (v2.3.2)
-
Edit the application module configuration file
module/Application/config/module.config.php
, adding the configuration fragment below:return array( //... 'assets_bundle' => array( 'assets' => array( 'less' => array('@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