2017 © Pedro Peláez
 

yii2-extension yii2-simple-comment

A simple comment extension.

image

itsurka/yii2-simple-comment

A simple comment extension.

  • Monday, February 2, 2015
  • by itsurka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple Comment

UNDER DEVELOPING! DO NOT USE IN PRODUCTION!, (*1)

A simple comment extension., (*2)

Installation

1) Download extension, (*3)

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

Either run, (*5)

php composer.phar require --prefer-dist itsurka/yii2-simple-comment "*"

or add, (*6)

"itsurka/yii2-simple-comment": "*"

to the require section of your composer.json file., (*7)

2) Apply migrations from yii2-simple-comment/migrations folder., (*8)

Usage

Once the extension is installed, simply use it in your code by :, (*9)

php <?= SimpleComment::widget([ 'model' => $model, // AR model for which will be displayed the comments widget. 'author' => $user, // AR model - comments author. 'authorNameAttribute' => 'username', // AR models name attribute. 'authorNameAttribute' => 'avatarUrl', // Avatar URL. Use this or $authorAvatarFunction param. 'authorAvatarFunction' => 'getAvatarUrl', // To get avatar URL. Use this or $authorAvatarAttribute param. 'authorAvatarWidth' => '100', 'authorAvatarHeight' => '100', ]) ?>, (*10)

The Versions

02/02 2015

dev-master

9999999-dev

A simple comment extension.

  Sources   Download

GPL-3.0+

extension yii2 comment