【文件属性】:
文件名称:yii2-chat-adminlte:yii2 聊天小部件小部件 admin lte
文件大小:36KB
文件格式:ZIP
更新时间:2021-06-20 13:01:57
PHP
yii2-chat-adminlte
yii2 聊天小部件小部件 admin lte
通过作曲家添加:
"sintret/yii2-chat-adminlte": "dev-master"
您只需将表格聊天添加到您的数据库中:
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;
并在视图中调用小部件:
【文件预览】:
yii2-chat-adminlte-master
----composer.json(891B)
----models()
--------Chat.php(3KB)
----assets()
--------img()
--------js()
----ChatJs.php(490B)
----views()
--------index.php(1KB)
----README.md(1KB)
----ChatRoom.php(3KB)