sergmoro1 / yii2-comment
Comment management. Reply, edit, approve. Chain of comments. Registered users only.
Installs: 36
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- sergmoro1/yii2-lookup: ^1.1
- sergmoro1/yii2-modal-crud: ^1.0
- sergmoro1/yii2-user: ^1.1
- yiisoft/yii2: *
README
Advantages
Backend comment management. Ready to use widgets for frontend. Used with sergmoro1/yii2-blog-tools module.
- reply to the comment;
- approve comment or send it to archive;
- email notification about new comment.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist sergmoro1/yii2-comment
or add
"sergmoro1/yii2-comment": "~1.0"
to the require section of your composer.json.
Run migration:
php yii migrate --migrationPath=@vendor/sergmoro1/yii2-comment/src/migrations
Recomendation
Use this module in addition to sergmoro1/yii2-blog-tools module.
Especially take a look common/models/Comment.php
after initblog
.
Usage
Set up in backend/config/main.php
or common/config/main.php
.
return [ ... 'bootstrap' => [ 'comment', ], 'modules' => [ 'lookup' ==> ['class' ==> 'sergmoro1\lookup\Module'], 'comment' ==> ['class' ==> 'sergmoro1\comment\Module'], ], ...