$model->formName(),
'enableAjaxValidation' => true,
'validationUrl' => Url::to(['ajax-edit', 'id' => $model['id']]),
'fieldConfig' => [
'template' => "
{label}
{input}\n{hint}\n{error}
",
]
]);
?>
= $form->field($model, 'pid')->dropDownList($dropDownList) ?>
= $form->field($model, 'title')->textInput(); ?>
= $form->field($model, 'name')->textInput()->hint('如果填写内容是路由需要绝对路径; 例如: /main/index'); ?>
= $form->field($model, 'sort')->textInput(); ?>