yii2cmf/yii2-adminlte-asset 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

yii2cmf/yii2-adminlte-asset

Composer 安装命令:

composer require yii2cmf/yii2-adminlte-asset

包简介

AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops.

README 文档

README

starter_page

AdminLTE 3 - Free admin dashboard template based on Bootstrap 4 for Yii2 framework

AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yii2cmf/yii2-adminlte-asset:0.2

or add

"yii2cmf/yii2-adminlte-asset": "~0.2"

to the require section of your composer.json file.

Configuration for module

After creating the module (e.g. admin) you should add some initialization code in the Module.php:

use Yii;
use yii\base\Theme;
use yii\base\Application;

    public function init():void
    {
        parent::init();
        $this->initTheme();
    }


    private function initTheme(): void
    {
        Yii::$app->view->theme = new Theme([
            'pathMap' => ['@app/views' => '@yii2cmf/templates/adminlte/views'],
            'baseUrl' => '@web/templates/adminlte'
        ]);
    }

Configuration for ability editing template

Copy vendor/yii2cmf/yii2-adminlte-asset/src/views/adminlte folder to app/modules/admin/views. And edit Module.php file:

use Yii;
use yii\base\Theme;
use yii\base\Application;


    public function init():void
    {
        parent::init();
        $this->initTheme();
    }

    private function initTheme(): void
    {
        Yii::$app->view->theme = new Theme([
            'pathMap' => ['@app/views' => '@app/modules/admin/views/adminlte'],
            'baseUrl' => '@web/modules/admin'
        ]);
    }
    

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固