File tree Expand file tree Collapse file tree 1 file changed +37
-2
lines changed
Expand file tree Collapse file tree 1 file changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,45 @@ to the require section of your `composer.json` file.
2626Usage
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
3570Yii2 AdminBSB - Material Design
You can’t perform that action at this time.
0 commit comments