almrooth / comment
Anax 的评论模块。
v1.0.4
2017-10-15 15:59 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
This package is not auto-updated.
Last update: 2024-09-29 05:27:39 UTC
README
这是一个用于 Anax 的评论模块。该模块为用户、管理员和评论提供了登录/登出和 CRUD 功能。
设置
使用 composer 安装
composer require almrooth/comment
数据库
评论模块使用 MYSQL 数据库进行存储。请确保您已安装了一个数据库。
请确保您有一个数据库配置文件。在 vendor/almrooth/comment/config/database.php
中有一个可用的示例。
要设置所有表格以供模块使用,请执行 vendor/almrooth/comment/sql/setup.sql
中的代码。
路由文件
将路由文件复制到您的 config/route
目录。
rsync -av vendor/almrooth/comment/config/route/* config/route/
在您的路由配置 config/route.php
中包含这些路由。在 vendor/almrooth/comment/config/route.php
中有一个可用的示例。
DI 服务
将所需服务添加到 DI,config/di.php
。在 vendor/almrooth/comment/config/di.php
中有一个可用的示例。
请确保将示例文件中的所有服务添加到您的 DI。
视图
评论模块包含其自己的默认视图。将它们复制到您的视图目录。
rsync -av vendor/almrooth/comment/view/* view/
许可证
本软件受 MIT 许可证保护。
.
..: Copyright (c) 2017 Tobias Almroth (almrooth@gmail.com)