-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-chapter.php
25 lines (23 loc) · 803 Bytes
/
create-chapter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 2016/12/15
* Time: 下午2:20
*/
/**
* @var \yii\web\View $this
* @var \common\modules\book\models\BookChapter $model
*/
use yii\helpers\Html;
use yii\helpers\HtmlPurifier;
use yii\helpers\Markdown;
use backend\widgets\ActiveForm;
$this->title = $model->book->book_name . ':新增章节';
$this->params['breadcrumbs'][] = ['label' => '书', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->book->book_name, 'url' => ['view', 'id' => $model->book->id]];
$this->params['breadcrumbs'][] = Html::encode($model->chapter_name);
?>
<?php $this->beginContent('@common/modules/book/views/admin/_layout.php', ['model' => $model]) ?>
<?= $this->render('_form_chapter', ['model' => $model]) ?>
<?php $this->endContent() ?>