yiichina/yii-cms

This package is abandoned and no longer maintained. The author suggests using the yiichina/yii2-cms package instead.

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

Installs: 321

Dependents: 0

Suggesters: 0

Security: 0

Stars: 134

Watchers: 28

Forks: 56

Type:project

v0.8.0 2018-11-06 13:11 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:47:45 UTC


README

Latest Stable Version Total Downloads License Build Status Yii2

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

YiiCMS群:7594839 (加群请注明:YiiCMS)

目录结构

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

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

cd <project-name>
./init

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

./yii migrate

功能简介

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