siripravi/yii2-bs5material-dashboard
最新稳定版本:v1.0
Composer 安装命令:
composer require siripravi/yii2-bs5material-dashboard
包简介
Complete dashboard module with login and lock page with material designed template
README 文档
README
1. Install via composer
Yii2-material-dashboard can be installed using composer. Run following command to install:
php composer.phar require vasadibt/yii2-material-dashboard
2. base configurations
Add kartik grid module to the application modules config
'modules' => [ // ... 'gridview' => [ 'class' => '\kartik\grid\Module' ], ],
Add material to view component theme part in components configurations
'layoutPath' => '@vendor/vasadibt/yii2-material-dashboard/src/views/layouts', 'components' => [ // ... 'view' => [ // ... 'theme' => [ 'pathMap' => [ '@vasadibt/materialdashboard/views' => '@app/views', ], ], ], ],
Turn Off the bootstrap4 dependency in BootstrapNotifyAsset class
'components' => [ // ... 'assetManager' => [ // ... 'bundles' => [ // ... 'yii\bootstrap\BootstrapAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']], 'yii\bootstrap\BootstrapPluginAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']], 'yii\bootstrap4\BootstrapAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']], 'yii\bootstrap4\BootstrapPluginAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']], 'kartik\dialog\DialogBootstrapAsset' => ['depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']], ], ], ],
And add material config component to components configurations, And set the default app asset class
'components' => [ // ... 'material' => [ 'class' => 'vasadibt\materialdashboard\components\Material', 'appAssetClass' => 'frontend\assets\AppAsset', ], ],
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-09