1. Go to this page and download the library: Download acelaya/zf2-acassets library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
acelaya / zf2-acassets example snippets
'modules' => array(
'AcAssets', // <-- Add this line
'Application',
),
<html>
<head>
<title>My web app</title>
echo $this->headLink();
echo $this->headScript();
[...]
<head>
<title>My web app</title>
echo $this->headLink()->appendStylesheet('/assets/css/mi-styles.css', 'all'); // <-- This is compatible with this module