2017 © Pedro Peláez
 

yii2-extension yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

image

sintret/yii2-chat-adminlte

Yii2 extension for Chat plugin with admin lte

  • Sunday, March 8, 2015
  • by sintret
  • Repository
  • 5 Watchers
  • 27 Stars
  • 4,589 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 31 Forks
  • 6 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

yii2-chat-adminlte

yii2 chat widget widget admin lte, (*1)

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

08/03 2015

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

1.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

1.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

1.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

1.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