$this,
'model' => $model->className(),
'model_id' => $model->project_id,
'comment_class' => \common\modules\comment\models\CommentProjectAnswer::className(),
'class_options' => [
'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
'user_id' => \Yii::$app->user->getId(),
'guestComment' => false,
'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
],
'provider_options' => [
'pagination' => [
'pageSize' => 2,
],
],
'success_options' => [
'tag' => 'div',
// 'content' => 'Вопрос успешно создан и появится как только будет получен ответ',
'content' => function(){
return "";
},
'class' => 'test-class-success',
],
'list_options' => [
'view' => 'list-comment-question',
],
'form_options' => [
'view' => 'form-comment-answer',
'tag' => 'span',
'class' => ( ( $model->user_id == \Yii::$app->user->id ) ? 'hidden' : '' ),
],
'options' => [
'class' => 'proektant-comments-wr fix_te style',
],
]);
Pjax::end();
?>