title = $model->isNewRecord ? '添加文章' : '编辑文章'; $this->params['breadcrumbs'][] = ['label' => '文章列表' , 'url' => [\Yii::$app->urlManager->createUrl(["admin/cms/post/index"])]]; $this->params['breadcrumbs'][] = $this->title; $status_labels = Post::statusLabels(); ?>
title ?>
" lay-verify="required">
别名
“别名”是在URL中使用的别称,它可以令URL更美观。通常使用小写,只能包含字母,数字和连字符(-)。
发布
$val):?> status == $key ? 'checked=""' : ''?>>
is_top == 0 ? 'checked=""' : ''?>> is_top == 1 ? 'checked=""' : ''?>>
allow_read == 0 ? 'checked=""' : ''?>> allow_read == 1 ? 'checked=""' : ''?>>
isNewRecord ? '' : '密码为空则不修改密码'?>
分类目录
$item):?> >
文章属性
'images', 'id' => 'cover_url_upload', 'name' => 'cover_url', 'label' => '文章封面', 'value' => $model->richText->cover_url, 'tip' => '图片大小640px×360px', 'imageCompressEnable' => 1, 'imageCompressBorder' => 640 ])?>
排序值越小越靠前
" lay-verify="">
registerJs($this->blocks['js_script_wrap'], \yii\web\View::POS_END); ?>