Answer the question
In order to leave comments, you need to log in
Why aren't resources updated?
There is this.
<?php
namespace app\modules\admin\assets;
class AdminAsset extends \yii\web\AssetBundle
{
public $sourcePath = '@app/modules/admin/static';
public $css = [
'css/style.css'
];
public $js = [
'js/main.js'
];
public $depends = [
'yiister\adminlte\assets\Asset'
];
}
Answer the question
In order to leave comments, you need to log in
Good morning.
You can add it to the config file
instead
'assetManager' => [
'linkAssets' => true,
],
I will answer myself))
<?php
namespace app\modules\admin\assets;
class AdminAsset extends \yii\web\AssetBundle
{
public $sourcePath = '@app/modules/admin/static';
public $publishOptions = ['forceCopy' => true];
public $css = [
'css/style.css'
];
public $js = [
'js/main.js'
];
public $depends = [
'yiister\adminlte\assets\Asset'
];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question