PHP code example of laxity7 / yii2-assets-free
1. Go to this page and download the library: Download laxity7/yii2-assets-free 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/ */
laxity7 / yii2-assets-free example snippets
'components' => [
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => [
'//code.jquery.com/jquery-3.4.0.min.js',
]
],
],
// or like this
//'assetMap' => [
// 'jquery.js' => '//code.jquery.com/jquery-3.4.0.min.js',
//],
],
],