jimmyyoung/yii-adminlte

adminLTE3 for yii2

安装: 4

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:yii2-extension

v1.1.0 2020-02-23 13:55 UTC

This package is auto-updated.

Last update: 2024-09-24 00:10:21 UTC


README

这是一个基于adminLTE3的Yii2模板。這是給Yii2使用adminLTE3的樣板。

安装

    composer require "jimmyyoungyoyo/yii2-adminlte"

用法

  1. 添加到配置
    // file path config/web.php 
    // add this in components
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/jimmyyoung/yii-adminlte/src'
             ],
         ],
    ],
  1. 使用菜单小部件
    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,
                ]
            ]
            ],
        ]])
    ?>

许可证

MIT

其他

如果这个项目有任何问题,请告诉我。

如果這個專案有任何問題,請告訴我,感謝