i found some error when use your extensions in my new server. it told header already sent on ChatRoom.php file. I use Yii 2.0.14
.....
if ($message) {
$model->message = $message;
$model->userId = Yii::$app->user->id;
if ($model->save()) {
echo $model->data(); // this cause error
} else {
print_r($model->getErrors());
exit(0);
}
} else {
\echo $model->data(); //this cause error
}
Hi there
i found some error when use your extensions in my new server. it told header already sent on ChatRoom.php file. I use Yii 2.0.14 ..... if ($message) { $model->message = $message; $model->userId = Yii::$app->user->id;
....
then i find solution in https://github.com/yiisoft/yii2/issues/15782
I try replace following code like ... if ($message) { $model->message = $message; $model->userId = Yii::$app->user->id;
...
Thanks for your attentions.. Sorry for bad english :D