mistim/yii2-theme-adminlte

为 Yii2 框架的 AdminLTE 主题

安装: 50

依赖: 1

建议者: 0

安全: 0

星标: 2

关注者: 1

分支: 0

开放问题: 0

类型:yii2-extension

0.1 2016-03-23 19:22 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:26:25 UTC


README

此包包含一个

安装

安装此扩展的首选方式是通过 composer

运行

php composer.phar require mistim/yii2-adminlte-asset "*"

或将 require 添加到 composer.json

"mistim/yii2-adminlte-asset": "*"

配置

将以下代码添加到 应用程序配置

'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/mistim/yii2-theme-adminlte/src/views'
             ],
         ],
    ],
],

在主控制器中设置布局

public $layout = '@vendor/mistim/yii2-theme-adminlte/src/views/layouts/main';

Gii 使用模板

'gii' => [
    'class' => 'yii\gii\Module',
    'generators' => [
        'crud' => [
            'class'     => 'yii\gii\generators\crud\Generator',
            'templates' => [
                'adminlte' => '@vendor/mistim/yii2-theme-adminlte/src/generators/crud/default'
            ]
        ]
    ]
],

// TODO ...