use yii\bootstrap\ActiveForm;
$this->title = Yii::t('common', 'Create');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Articles'), 'url' => ['post/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
创建文章
= $form->field($model, 'title')->textinput(['maxlength' => true]) ?>
= $form->field($model, 'cat_id')->dropDownList(['1' => '分类1', '2' => '分类2']) ?>
= $form->field($model, 'label_img')->textinput(['maxlength' => true]) ?>
= $form->field($model, 'content')->textinput(['maxlength' => true]) ?>
= $form->field($model, 'tags')->textinput(['maxlength' => true]) ?>
= Html::submitButton("发布", ['class' => 'btn btn-seccess']) ?>
注意事项
1.asdadadad
2.asfafds
PHP Fatal Error – yii\base\ErrorException
Method yii\bootstrap\ActiveField::__toString() must not throw an exception, caught Error: Class 'frontend\models\Yii' not found
试了好久,始终调不出来创建文章的页面,命名空间的错误吗?应该怎么写