承接 wonail/yii2-adminlte 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wonail/yii2-adminlte

Composer 安装命令:

composer require wonail/yii2-adminlte

包简介

yii2-adminlte is a package for yii framework 2 that consists a very popular backend template AdminLTE (based on bootstrap 3).

README 文档

README

AdminLTE theme

包含组件

查看更多有关AdminLTE主题的部件

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wonail/yii2-adminlte "*"

or add

"wonail/yii2-adminlte": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

Skins

默认的,AdminLTE主题扩展使用蓝色(skin-blue)主题,你也可以在配置文件里自定义其他颜色,如下:

'components' => [
    'assetManager' => [
        'bundles' => [
            'wonail\adminlte\AdminLteAsset' => [
                'skin' => 'skin-black',
            ],
        ],
    ],
],

当自定义了其他颜色,你可以使用AdminLteHelper助手类读取配置值,如下:

<body class="<?= \wonail\adminlte\AdminLteHelper::skinClass() ?>">

Note: 只有通过配置文件自定义主题颜色才可以使用该方法读取主题颜色值,否则无法获取到相关主题颜色

以下是可用的主题颜色:

"skin-blue",
"skin-black",
"skin-red",
"skin-yellow",
"skin-purple",
"skin-green",
"skin-blue-light",
"skin-black-light",
"skin-red-light",
"skin-yellow-light",
"skin-purple-light",
"skin-green-light"

FlashAlert

<?php
    Yii::$app->session->setFlash('success', 'The extension is installed!');
    Yii::$app->session->setFlash('error', ['error1', 'error2']); // 支持数组
    echo \wonail\adminlte\widgets\FlashAlert::widget();
?>

Panel

<?=
\wonail\adminlte\widgets\Box::widget([
    'header' => 'Panel widget',
    'body' => 'This is a panel widget.',
    'isPanel' => true,
]);
?>

Box

<?=
\wonail\adminlte\widgets\Box::widget([
    'header' => 'Box widget',
    'body' => 'This is a box widget.',
]);
?>

Callout

<?=
\wonail\adminlte\widgets\Callout::widget([
    'type'=>\wonail\adminlte\AdminLTE::TYPE_WARNING,
    'body'=>'This is a callout widget.'
]);?>

SmallBox

<?=
\wonail\adminlte\widgets\SmallBox::widget([
    'bgColor'=>\wonail\adminlte\AdminLTE::BG_PURPLE,
    'header'=>'90%',
    'description'=>'Free Space',
    'icon'=>'cloud-download',
    'linkLabel'=>'查看更多 <i class="fa fa-arrow-circle-right"></i>',
    'linkRoute'=>'#'
]);?>

InfoBox

<?=
\wonail\adminlte\widgets\InfoBox::widget([
    'bgColor' => \wonail\adminlte\AdminLTE::BG_AQUA,
    'number' => 100500,
    'header' => 'InfoBox widget',
    'icon' => 'bolt',
    'progress' => 66,
    'progressDescription' => 'Something about this'
])
?>

统计信息

  • 总下载量: 207
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固