use model name instead of page title

This commit is contained in:
cornernote 2015-08-12 16:25:40 +09:30
parent 14600caaff
commit 9ad01fa1d2

View File

@ -19,7 +19,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= $model->getReadmeHtml() ?>
<?php
if (!$model->readme) {
echo '<h1>' . Html::encode($this->title) . '</h1>';
echo '<h1>' . Html::encode($model->name) . '</h1>';
echo Alert::widget([
'options' => [
'class' => 'alert-danger',