yiichina / yii2-cms
基于 Yii 2 的高度可定制化 CMS
Installs: 460
Dependents: 0
Suggesters: 0
Security: 0
Stars: 156
Watchers: 29
Forks: 65
Open Issues: 8
Type:project
Requires
- php: >=5.4.0
- dektrium/yii2-rbac: dev-master
- yiichina/yii2-adminlte: *
- yiichina/yii2-auth: *
- yiichina/yii2-chart: *
- yiichina/yii2-ckeditor: *
- yiichina/yii2-comments: *
- yiichina/yii2-icheck: *
- yiichina/yii2-icons: *
- yiichina/yii2-select2: *
- yiichina/yii2-switch: *
- yiichina/yii2-treegrid: *
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/specify: ~0.4.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
README
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
功能简介
- adminLTE
- 国际化
- RBAC
- 第三方登录
- 评论模块
- 后台更换主题
- 分享
- 赞功能
- 收藏