Skip to content

Commit b082cb6

Browse files
committed
Merge branch 'master' of github.com:Pipa7/yii2-admin-bsb-material-design
2 parents 434c571 + ea29a0d commit b082cb6

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,45 @@ to the require section of your `composer.json` file.
2626
Usage
2727
-----
2828

29-
Once the extension is installed, simply use it in your code by :
29+
Once the extension is installed, simply edit the file in assets/AppAsset.php and add the following line in $depends: a
3030

3131
```php
32-
<?= \pipa7\adminbsb\AutoloadExample::widget(); ?>```
32+
'pipa7\adminbsb\assets\ThemeAsset'
33+
```
34+
35+
Should stay like this:
36+
```php
37+
<?php
38+
/**
39+
* @link http://www.yiiframework.com/
40+
* @copyright Copyright (c) 2008 Yii Software LLC
41+
* @license http://www.yiiframework.com/license/
42+
*/
43+
44+
namespace app\assets;
45+
46+
use yii\web\AssetBundle;
47+
48+
/**
49+
* @author Qiang Xue <qiang.xue@gmail.com>
50+
* @since 2.0
51+
*/
52+
class AppAsset extends AssetBundle
53+
{
54+
public $basePath = '@webroot';
55+
public $baseUrl = '@web';
56+
public $css = [
57+
'css/site.css',
58+
];
59+
public $js = [
60+
];
61+
public $depends = [
62+
'yii\web\YiiAsset',
63+
'yii\bootstrap\BootstrapAsset',
64+
'pipa7\adminbsb\assets\ThemeAsset'
65+
];
66+
}
67+
```
3368
=======
3469
# yii2-admin-bsb-material-design
3570
Yii2 AdminBSB - Material Design

0 commit comments

Comments
 (0)