update-chapter.php 645 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: NODELOG
  5. * Date: 2016/12/15
  6. * Time: 下午2:20
  7. */
  8. /**
  9. * @var \yii\web\View $this
  10. * @var \common\modules\book\models\BookChapter $model
  11. */
  12. use yii\helpers\Html;
  13. use yii\helpers\HtmlPurifier;
  14. use yii\helpers\Markdown;
  15. use backend\widgets\ActiveForm;
  16. $this->title = $model->chapter_name;
  17. $this->params['breadcrumbs'][] = ['label' => '书', 'url' => ['index']];
  18. $this->params['breadcrumbs'][] = Html::encode($model->chapter_name);
  19. ?>
  20. <?php $this->beginContent(__DIR__ . '/_layout.php', ['model' => $model]) ?>
  21. <?= $this->render('_form_chapter', ['model' => $model]) ?>
  22. <?php $this->endContent() ?>