定制 ogheo/yii2-comments 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ogheo/yii2-comments

Composer 安装命令:

composer require ogheo/yii2-comments

包简介

Comments module for Yii2

README 文档

README

Comments module for Yii2.

Installation

The preferred way to install this extension is through composer.

try

composer require "ogheo/yii2-comments:*"

or add

"ogheo/yii2-comments": "*"

to the require section of your composer.json file.

Configuration

Database migrations

php yii migrate/up --migrationPath=@vendor/ogheo/yii2-comments/src/migrations

Module setup

'modules' => [
    'comments' => [
        'class' => 'ogheo\comments\Module',
    ]
]

All available options can be viewed in Comments module file.

Usage

Add one of the following examples to the view file.

Basic example

Model is not mandatory, comments will be associated to the current url.

use ogheo\comments\widget\Comments;
    
echo Comments::widget();

Advanced example

To change default settings, you can do as follows:

use ogheo\comments\widget\Comments;
    
echo Comments::widget([
    'model' => $model,
    'model_key' => $model_key,
]);

All available options can be viewed in Comments widget file.

Enjoy ;)

Demo pictures

demo

统计信息

  • 总下载量: 830
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 5
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固