return [
// Adjust command/callback for JavaScript files compressing:
'jsCompressor' => 'java -jar compiler.jar --js {from} --js_output_file {to}',
// Adjust command/callback for CSS files compressing:
'cssCompressor' => 'java -jar yuicompressor.jar --type css {from} -o {to}',
// Whether to delete asset source after compression:
'deleteSource' => false,
// The list of asset bundles to compress:
'bundles' => [
'frontend\assets\AppAsset',
'yii\web\YiiAsset',
'yii\web\JqueryAsset',
'yii\widgets\ActiveFormAsset '// вот сюда ?
],
// Asset bundle for compression output:
'targets' => [
'all' => [
'class' => 'yii\web\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => 'js/all-{hash}.js',
'css' => 'css/all-{hash}.css',
],
],
// Asset manager configuration:
'assetManager' => [
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
],
];
php yii asset assets.php frontend/config/assets-prod.php
<?php
/**
* This file is generated by the "yii asset" command.
* DO NOT MODIFY THIS FILE DIRECTLY.
* @version 2018-07-09 13:38:00
*/
return [
'all' => [
'class' => 'yii\\web\\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => [
'js/all-71671b0d011528616eefa4f63d7ca987.js',
],
'css' => [
'css/all-7f305824649cd3e204470e3207ef26de.css',
],
'sourcePath' => null,
'depends' => [],
],
'yii\\web\\JqueryAsset' => [
'sourcePath' => null,
'js' => [],
'css' => [],
'depends' => [
'all',
],
],
'yii\\web\\YiiAsset' => [
'sourcePath' => null,
'js' => [],
'css' => [],
'depends' => [
'yii\\web\\JqueryAsset',
'all',
],
],
'yii\\bootstrap\\BootstrapAsset' => [
'sourcePath' => null,
'js' => [],
'css' => [],
'depends' => [
'all',
],
],
'frontend\\assets\\AppAsset' => [
'sourcePath' => null,
'js' => [],
'css' => [],
'depends' => [
'yii\\web\\YiiAsset',
'yii\\bootstrap\\BootstrapAsset',
'all',
],
],
];
'assetManager' => [
'bundles' => require(__DIR__ . '/assets-prod.php')
]
[
'attribute'=>'expirationDate',
'label'=>'Поставлен на учет до',
'filter' => DatePicker::widget([
'name' => 'EmployeeSearch[expirationDate]',
'value' => $redisString,
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy-mm-dd'
],
'pluginEvents' => [
'clearDate' => 'function(e){
$.ajax({
type: "POST",
url: "clear-expiration",
data: "date="+e.target.lastChild.defaultValue,
success: function(msg){
alert( "Прибыли данные: " + msg );
}
});
}',
]
]),
Что делать ?