title = $post->title; $this->params['breadcrumbs'][] = ['label' => Yii::t('post', 'Comments'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>

'btn btn-default']) ?> $post->id, 'id' => $comment->id], ['class' => 'btn btn-primary']) ?> isActive()): ?> $post->id, 'id' => $comment->id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'), 'method' => 'post', ], ]) ?> $post->id, 'id' => $comment->id], [ 'class' => 'btn btn-success', 'data' => [ 'confirm' => Yii::t('buttons', 'Are you sure you want to activate this item?'), 'method' => 'post', ], ]) ?>

$comment, 'attributes' => [ 'id', 'created_at:boolean', 'active:boolean', [ 'attribute' => 'user_id', 'value' => function(\core\entities\post\PostComment $comment) { return User::findOne($comment->user_id)->username; }, ], 'parent_id', [ 'attribute' => 'post_id', 'value' => $post->title, ], ], ]) ?>
formatter->asNtext($comment->text) ?>