andymartinj/comments

Anax 评论模块。

1.2.2 2017-10-10 13:54 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:31:17 UTC


README

Build Status Build Status Scrutinizer Code Quality Code Coverage

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)