DISQUS widget helps you to render your DISQUS comments thread or DISQUS comments thread count on your Yii2 applications, (*1)
, (*2)
Installation
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist yii2mod/yii2-disqus "*"
or add, (*5)
"yii2mod/yii2-disqus": "*"
to the require section of your composer.json., (*6)
Usage
- Once the extension is installed, simply add widget to your page as follows:
echo \yii2mod\disqus\Disqus::widget([
'options' => ['shortname' => 'DISQUS_SHORTNAME']
]);
echo \yii2mod\disqus\Disqus::widget([
'options' => ['shortname' => 'DISQUS_SHORTNAME', 'identifier'=>'DISQUS_IDENTIFIER', 'url'=>'URL'],
]);