Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spanjeta/yii2-comments
Comments Widget adds comment box for any view
https://github.com/spanjeta/yii2-comments
Last synced: 2 months ago
JSON representation
Comments Widget adds comment box for any view
- Host: GitHub
- URL: https://github.com/spanjeta/yii2-comments
- Owner: spanjeta
- Created: 2014-10-26T20:07:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T06:26:23.000Z (over 9 years ago)
- Last Synced: 2024-10-01T14:25:06.466Z (3 months ago)
- Language: PHP
- Size: 123 KB
- Stars: 6
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NOT READY YET. Please do not use it yet
=============================================Comments Widget
===============
Comments Widget adds comment box for any viewInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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 :
```php
= \spanjeta\comments\CommentsWidget::widget(['model'=>$model]); ?>```