yii2 标准窗体view代码

use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\redactor\RedactorModule;


$this->title = '添加文章';
$this->params['breadcrumbs'][] = $this->title;

?>

    <?php $form = ActiveForm::begin(); ?>

        <?php echo $form->field($model,'title_before'); ?>

        <?php echo $form->field($model,'title')->textInput(['value' => '这里是标题']); ?>

        <div class="form-group">
            <div class="control-label">&nbsp;</div>
                <?= Html::submitButton('提交') ?>
        </div>

    <?php ActiveForm::end(); ?>