spanjeta/yii2-comments

Comments Widget adds comment box for any view

Installs: 1 308

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 7

Forks: 4

Open Issues: 1

Type:yii2-extension

v1.0 2015-06-05 06:21 UTC

This package is not auto-updated.

Last update: 2024-04-27 14:43:47 UTC


README

Comments Widget

Comments Widget adds comment box for any view

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist spanjeta/yii2-comments "*"

or add

"spanjeta/yii2-comments": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, use mitration to install table

yii migrate/up --migrationPath=@spanjeta/comments/migrations

simply use it in your code by :

<?=   \spanjeta\comments\CommentsWidget::widget(['model'=>$model]); ?>```