web.php:
Код: Выделить всё
'assetManager' => [
'appendTimestamp' => true,
'bundles' => [],
],
Код: Выделить всё
CSSAsset::register($this);
CSSAsset:
Код: Выделить всё
class CSSAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'/themes/bootstrap4/css/chosen-bootstrap.css',
'/themes/bootstrap4/css/narrow-jumbotron.css',
'/themes/bootstrap4/css/app.css',
];
public $js = [
];
public $depends = [
];
}
Код: Выделить всё
<link href="/themes/bootstrap4/css/chosen-bootstrap.css" rel="stylesheet">
<link href="/themes/bootstrap4/css/narrow-jumbotron.css" rel="stylesheet">
<link href="/themes/bootstrap4/css/app.css?2" rel="stylesheet"></head>