2017 © Pedro Peláez
 

project yii2-cms

基于 Yii 2 的高度可定制化 CMS

image

yiichina/yii2-cms

基于 Yii 2 的高度可定制化 CMS

  • Wednesday, April 25, 2018
  • by cuiliang
  • Repository
  • 21 Watchers
  • 101 Stars
  • 396 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 47 Forks
  • 2 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

Yii CMS

Latest Stable Version Total Downloads License Build Status Yii2, (*1)

YiiCMS (http://www.yiicms.com) 是 Yii Framework 中文社区 (http://www.yiichina.com) 发起的开源项目,遵循 BSD 开源协议。 致力于帮助刚入门的同学理解 Yii2 的使用。, (*2)

YiiCMS群:7594839 (加群请注明:YiiCMS), (*3)

目录结构

common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes    
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
    tests/               contains tests for backend application    
    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
    tests/               contains tests for frontend application
    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

安装方式

创建数据库,推荐 MySQL,默认库名为 yiicms,编码选 utf8mb4_general_ci。, (*4)

composer create-project --prefer-dist yiichina/yii-cms <project-name> 

cd <project-name>
./init

修改数据库配置,位于 @common/config/main-local.php, (*5)

./yii migrate

功能简介

  1. adminLTE
  2. 国际化
  3. RBAC
  4. 第三方登录
  5. 评论模块
  6. 后台更换主题
  7. 分享
  8. 赞功能
  9. 收藏

The Versions