poprigun-chat
The preferred way to install this extension is through composer.
Either run
php composer.phar require poprigun/chat "*"
or add
"poprigun/chat": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
php
js
$(window).ready(function(){ poprigunChat.loadDialogs(); poprigunChat.listenServerDialog(); });
Templates build with Handlebars
yii migrate --migrationPath=@vendor/poprigun/chat/migrations
'modules' => [ 'poprigun_chat' => [ 'class' => \poprigun\chat\PChatModule::className(), 'params' => [ 'pchat-settings' => [ 'userModel' => \frontend\models\User::className(), 'userAvatarMethod' => [ 'class' =>\frontend\models\User::className(), 'method' =>'avatar', ], 'userNameMethod' => [ 'class' =>\frontend\models\Profile::className(), 'method' =>'fullName', 'relation' => 'profile', ], ], ], ], ],