Дата публикации: <?php echo Yii::$app->formatter->asDate($model->created_at); ?> </p> </div> <div style="padding:20px"> <?php echo $model->short; ?> </div> <div style="clear:both"></div> <div> <?php echo $model->full; ?> </div> <div style="clear:both"></div> <h4><?php echo Yii::t('main', 'Tags'); ?> </h4> <p><?php echo $model->tagLinks; ?> </p> <hr> <?php echo \app\modules\comments\widgets\CommentWidget::widget(['model' => $model]);
<?php use yii\helpers\Html; $this->title = 'Доска сообщений'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="header"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> <div class="well"> <?php echo \app\modules\comments\widgets\CommentWidget::widget(['model' => 'adminBoard', 'options' => ['position' => 'top', 'header' => 'off']]); ?> </div>
<?php $this->params['breadcrumbs'][] = Yii::t('main', 'Board'); ?> <?php echo \app\modules\comments\widgets\CommentWidget::widget(['model' => 'board', 'options' => ['position' => 'top']]);