sat / yii2-comments
There is no license information available for the latest version (dev-master) of this package.
Comments for Yii2 Framework.
dev-master / 0.1.9.x-dev
2018-12-20 09:11 UTC
Requires
- php: >=5.5
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2024-04-20 21:31:18 UTC
README
This module provide a comments managing system for Yii2 application.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev sat/yii2-comments dev-master
or
composer require --dev sat/yii2-comments dev-master
or add
"sat/yii2-comments": "*"
to the require section of your composer.json.
Configuration
Database Migrations
Before using Comments Widget, we'll also need to prepare the database.
php yii migrate --migrationPath=@vendor/yii2mod/yii2-satcomments/migrations
Module setup
To access the module, you need to add the following code to your application configuration:
'modules' => [
'comment' => [
'class' => 'sat\comments\Module',
// when admin can edit comments on frontend
'enableInlineEdit' => false,
],
]
Widget setup
echo \sat\comments\widgets\MainWidget::widget();