2017 © Pedro Peláez
 

project yii2-app-advanced

Yii 2 Advanced Project Template

image

izyue/yii2-app-advanced

Yii 2 Advanced Project Template

  • Monday, April 9, 2018
  • by liulipeng
  • Repository
  • 17 Watchers
  • 90 Stars
  • 1,357 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 61 Forks
  • 4 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

Yii2 高级模板,配置的后台样式

Latest Stable Version Total Downloads License Daily Downloads, (*1)

作者博客

https://www.izyue.com/yii2-admin, (*2)

简介

系统基于yii2.0框架开发,保留框架原有的特性,适合作为二次开发的基础系统,也可以直接拿来作为后台系统。管理系统的模块在不断完善中,现有的功能包含,完整的RBAC权限管理~, (*3)

功能

  1. 基础功能:登录,登出,密码修改等常见的功能, (*4)

  2. 菜单配置:可视化配置菜单,可以根据配置用户的权限显示隐藏菜单, (*5)

  3. 权限机制:角色、权限增删改查,以及给用户赋予角色权限, (*6)

  4. 规则机制:除了权限角色之外有规则机制,即可以给对应的权限配置规则, (*7)

  5. 二次开发:完全可以基于该系统做二次开发,开发一套适合自己的后台管理系统,节约权限控制以及部分基础功能开发的时间成本,后台系统开发的不二之选, (*8)

  6. 持续更新:新的功能模块会持续更新,请关注, (*9)

安装

#### 1. 安装/izyue/Yii2模板

php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist izyue/yii2-app-advanced advanced

#### 2. 安装Composer

composer install

#### 3. 导入表结构(migration)

需要顺序执行, (*10)

  • 导入rbac migration
yii migrate --migrationPath=@yii/rbac/migrations
  • 导入admin migration
yii migrate --migrationPath=@izyue/admin/migrations

### 后台登录密码

User: admin
Password: @newsnow.com.cn@

Admin源码

源码点这里, (*11)

预览

登录

, (*12)

首页

, (*13)

权限管理

, (*14)

角色管理

, (*15)

路由管理

, (*16)

菜单管理

, (*17)

DIRECTORY STRUCTURE

common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

The Versions

09/04 2018