$model->formName(),
'enableAjaxValidation' => true,
'validationUrl' => Url::to(['update', 'id' => $model['id']]),
'fieldConfig' => [
'template' => "
{label}
{input}\n{hint}\n{error}
",
]
]);
?>
= $form->field($model, 'name')->textInput(); ?>
= $form->field($model, 'cate_id')->dropDownList(ArrayHelper::merge([0 => '请选择'], $cateMap)); ?>