PHP code example of lpinc / lpi-asset-loader

1. Go to this page and download the library: Download lpinc/lpi-asset-loader 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/ */

    

lpinc / lpi-asset-loader example snippets

bash
    $ php composer.phar update
    

$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
);

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