2017 © Pedro Peláez
 

library lpi-asset-loader

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

image

lpinc/lpi-asset-loader

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

  • Sunday, January 22, 2017
  • by lpinc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

LpiAssetLoader Zend Framework Module (ZF3 compatible)

Created by LPinc, (*1)

Introduction

LpiAssetLoader is a zend framework - ZF2 and ZF3 - module that helps configure the loading of front-end custom, bower, or npm javascript and css files and assets., (*2)

This module can be especially handy if you load AMD javascript modules in your layouts or view scripts., (*3)

Installation

via github

To install LpiAssetLoader, simply recursively clone this repository (git clone --recursive) into your ZF2 or ZF3 modules directory., (*4)

Or with composer

  1. Add this project and LpiAssetLoader in your composer.json:, (*5)

    "require": {
        "lpinc/lpi-asset-loader": "~0.1"
    }
    
  2. Now tell composer to download ZfcUser by running the command:, (*6)

    $ php composer.phar update
    

Enable

Enable LpiAssetLoader in your config/application.config.php file., (*7)

Config Options

The LpiAssetLoader module has some options to help customize the basic functionality. After installing LpiAssetLoader, copy ./vendor/lpinc/lpi-asset-loader/config/lpiassetloader.global.php.dist to ./config/autoload/lpiassetloader.global.php and change the values as desired., (*8)

If you istalled dojo using nodejs npm, then a sample config might look like this:, (*9)

$settings = array(
   'dojo_config_settings' => array(
      'async' => true,
      'parseOnLoad' => true
   ),
   'dojo_on' => true,
   'use_source' => true,
   'base_vendor_src_path' => '/node_modules/',
   'amd_vendor_modules' => array(
      'dojo' => 'dojo',
      'dijit' => 'dijit',
      'dojox' => 'dojox'
   )
);

return array(
   'lpi-asset-loader' => $settings
);

Example Uses:

To configue and intialize dojo in a zend framework view-layout file:

if (is_object($this->LpiAssetLoader)) {
   echo $this->LpiAssetLoader->getDojoConfig();
   echo $this->LpiAssetLoader->getDojoInitAssets();
}

To configue dojo with a custom module in a zend framework layout file:

The Versions

22/01 2017

dev-master

9999999-dev

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

bootstrap zf2 dojo zf3 npm

22/01 2017

0.1.10

0.1.10.0

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

bootstrap zf2 dojo zf3 npm

22/01 2017

dev-test-jl-branch

dev-test-jl-branch

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

bootstrap zf2 dojo zf3 npm

08/09 2016

0.1.9

0.1.9.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

12/08 2016

0.1.8

0.1.8.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

07/08 2016

0.1.7

0.1.7.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

16/02 2016

0.1.6

0.1.6.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

01/11 2015

0.1.5

0.1.5.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

28/02 2015

0.1.4

0.1.4.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2

26/02 2015

0.1.3

0.1.3.0

LpiAssetLoader is a zf2 module that can be used in zf2 layouts to load front end asset javascript and css files and frameworks

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

zf2