jimmyyoung / yii-adminlte
adminLTE3 for yii2
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- almasaeed2010/adminlte: ~3.0
This package is auto-updated.
Last update: 2024-04-23 23:17:59 UTC
README
This is a template based on adminLTE3 for Yii2。 這是給Yii2使用adminLTE3的樣板。
Install
composer require "jimmyyoungyoyo/yii2-adminlte"
Usage
- add to config
// file path config/web.php // add this in components 'view' => [ 'theme' => [ 'pathMap' => [ '@app/views' => '@vendor/jimmyyoung/yii-adminlte/src' ], ], ],
- use Menu Widget
use jimmyyoungyoyo\adminlte\component\MenuGenerate; <?= MenuGenerate::widget([ 'menu' => [ ['label' => 'Account', 'icon' => 'fa fa-users', 'url' => '/account/index', 'active' => true], ['label' => 'Message', 'icon' => 'fa fa-paper-plane', 'url' => '/message/index', 'active' => false], [ 'label' => 'Dashboard', 'icon' => 'fa fa-tachometer-alt', 'url' => '#', 'active' => false, 'items' => [ [ 'label' => 'example1', 'icon' => 'fa fa-users', 'url' => '/dashboard/example1', 'active' => false, ], [ 'label' => 'example2', 'icon' => 'fa fa-users', 'url' => '/dashboard/example2', 'active' => false, ], [ 'label' => 'example3', 'icon' => 'fa fa-users', 'url' => '/dashboard/example3', 'active' => false, ] ] ], ]]) ?>
License
MIT
Other
Please tell me if this project have any problem。
如果這個專案有任何問題,請告訴我,感謝