2017 © Pedro Peláez
 

yii2-extension yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

image

sintret-2017/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  • Thursday, December 28, 2017
  • by dead142
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 31 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

yii2-chat-adminlte

yii2 chat widget widget admin lte, (*1)

Fix bug yii2-chat-adminlte Trying to get property of non-object $model->user->username

delete avatar

add via composer :, (*2)

"sintret/yii2-chat-adminlte": "dev-master", (*3)

You just add table chat to your database with this :, (*4)

CREATE TABLE `chat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `userId` INT(11) DEFAULT NULL,
  `message` TEXT,
  `updateDate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=INNODB;

and calling the widget in the view : , (*5)

    
\yii\helpers\Url::to(['/chat/send-chat']), 'userModel'=> \app\models\User::className(), 'userField' => 'avatarImage' ]); ?>

in your controller eg ChatController action sendChat, (*6)

public function actionSendChat() {
    if (!empty($_POST)) {
        echo \sintret\chat\ChatRoom::sendChat($_POST);
    }
}

attribute additional for this widget:, (*7)

<, (*8)

p> url : your controller/action to post message using ajax, (*9)

<, (*10)

p> userModel : your user model class name, (*11)

<, (*12)

p> userField : your avatar image source in your User class, ex: avatarImage, (*13)

The Versions

28/12 2017

dev-master

9999999-dev https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat

12/02 2015

v1.4.0.x-dev

1.4.0.9999999-dev https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat

11/02 2015

v1.3.0.x-dev

1.3.0.9999999-dev https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat

24/01 2015

v1.1.0.x-dev

1.1.0.9999999-dev https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat

24/01 2015

v1.0.0.x-dev

1.0.0.9999999-dev https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat

14/01 2015

v1.0.0

1.0.0.0 https://github.com/sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  Sources   Download

MIT

The Requires

 

plugin yii2 jquery ajax adminlte chat