?> <?php echo $form->field($model, 'state')->dropDownList([0 => '隐藏', 1 => '显示']); ?> <?php } ?> <!--添加 三级菜单 表单--> <?php if ($type == 3) { ?> <?php echo $form->field($model, 'id')->label(false)->hiddenInput(); ?> <?php echo $form->field($model, 'father_id3')->label('请选择父级菜单')->dropDownList(ArrayHelper::map(Menus::menus(2), 'id', 'name')); ?> <?php echo $form->field($model, 'name')->textInput(['placeholder' => '菜单名']); ?> <?php echo $form->field($model, 'controller')->textInput(['placeholder' => 'Controller 控制器']); ?> <?php echo $form->field($model, 'action')->textInput(['placeholder' => 'Action 方法']); ?> <?php echo $form->field($model, 'sort')->label('排序 - (三位数)')->textInput(['placeholder' => '排序', 'type' => 'number', 'maxlength' => 3]); ?> <?php echo $form->field($model, 'state')->dropDownList([0 => '隐藏', 1 => '显示']);