andymartinj / comments
Anax 评论模块。
1.2.2
2017-10-10 13:54 UTC
Requires
- php: >=5.6
- anax/configure: ^1.0
- anax/database: ^1.1
- anax/di: ^1.0
- anax/htmlform: ^1.0
- anax/page: ^1.0
- anax/request: ^1.0
- anax/response: ^1.0
- anax/router: ^1.0
- anax/session: ^1.0
- anax/textfilter: ^1.0
- anax/url: ^1.0
- anax/view: ^1.0
README
Anax 系统的评论模块
安装
使用 composer 安装
composer require andymartinj/comments
复制视图文件
rsync -av vendor/andymartinj/comments/view/comments* view
edit_comment.php 视图是编辑评论所必需的。comments.php 只是显示如何将评论部分添加到页面中。
路由文件
rsync -av vendor/andymartinj/comments/config/route/comments.php config/route
您需要在路由配置文件 config/route.php
中包含路由文件。您可以在 vendor/andymartinj/comments/config/route.php
中找到一个示例。
DI 服务
您需要在 config/di.php
中添加服务 DI 配置。您可以在 vendor/andymartinj/comments/config/di.php
中找到一个示例。
数据库
系统使用数据库来存储评论。您可以在 vendor/andymartinj/comments/data/comments.sqlite
中查看数据库结构。
许可证
本软件携带 MIT 许可证。
.
..: Copyright (c) 2017 Andre Johansson (anjd16@student.bth.se)