?> <?php $item['post_count']++; ?> <?php echo Post::widget(['model' => $post, 'topic' => $topic, 'count' => $item['post_count']]); ?> <?php } ?> </div> <?php if (!Yii::$app->getUser()->getIsGuest()) { ?> <?php echo Editor::widget(['activeFormOptions' => ['action' => Url::to(['/topic/default/view', 'id' => $topic->id, '#' => 'postform'])], 'model' => $model, 'messageAttribute' => 'message']); ?> <?php } ?> <div class="pagination-center"> <?php echo LinkPager::widget(['pagination' => $dataProvider->pagination]); ?> </div> </div> <?php echo Sidebar::widget(); ?> </div>
<?php use editor\Editor; /** @var \app\components\View $this */ $this->title = 'Создание новой темы'; \topic\TopicAsset::register($this); ?> <div class="question-header"> <h1><?php echo $this->title; ?> </h1> </div> <div class="page-create-topic"> <?php echo Editor::widget(['model' => $model, 'titleAttribute' => 'subject', 'messageAttribute' => 'message']); ?> </div>