2017 © Pedro Peláez
 

yii2-extension yii2-comment

light Yii2 comment widget

image

isaurssaurav/yii2-comment

light Yii2 comment widget

  • Tuesday, February 7, 2017
  • by isaurssaurav
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

composer require isaurssaurav/yii2-comment

or add, (*3)

"isaurssaurav/yii2-comment": "*"

to the require section of your composer.json. Font Awesome is required*, (*4)

Configuration

Database Migrations, (*5)

Before using Comments Widget, we'll also need to prepare the database., (*6)

php yii migrate --migrationPath=@vendor/isaurssaurav/yii2-comment/migration

Module setup To access the module, you need to add the following code to your application configuration:, (*7)

'modules' => [
    'comment' => [
        'class' => 'isaurssaurav\yii\comment\Module',
    ],
]

Usage

Basic example:, (*8)

use isaurssaurav\yii\comment\widgets\CommentWidget;

//echo where you want to show comment
 echo CommentWidget::widget();

Properties

1.limit Default value is 2 No of comment you want to show at first.This number also controls number of comment shown after LOAD MORE is clicked 2.sort ASC or DESC 3.recognize_schema Defaultly it catches current url, but You can changed it to idk page_id or something, (*9)

use isaurssaurav\yii\comment\widgets\CommentWidget;

//echo where you want to show comment
 echo CommentWidget::widget([
    limit => 10,
    sort => DESC,
]);

demo.png, (*10)

The Versions

07/02 2017

dev-master

9999999-dev

light Yii2 comment widget

  Sources   Download

MIT

The Requires

 

by saurs saurav

yii2 yii2-comments yii2-comments-module yii2-manage-comments

17/01 2017

1.0.0

1.0.0.0

light Yii2-comment widget

  Sources   Download

MIT

The Requires

 

by saurs saurav

comment yii2-comment advanced-comment