This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Installation
neilime edited this page Aug 30, 2016
·
1 revision
- Install the lessphp fork, Minify by cloning them into
./vendor/
. - Clone this project into your
./vendor/
directory.
-
Add this project in your composer.json:
"require": { "neilime/zf2-assets-bundle": "dev-master" }
-
Now tell composer to download AssetsBundle by running the command:
$ php composer.phar update
-
Enabling it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'AssetsBundle', // ... ), // ... );
You should note that as the ordering of modules matters, you should declare the 'AssetsBundle' module before your application modules to ensure the default settings don't take priority.
-
Insert css & js files into your layout page
Into the
<head>
part :echo $this->headScript();
At the bottom of the
<body>
part :echo $this->inlineScript();