隐藏标签方式一:
= $form->field($model, 'ee_type', ['labelOptions'=>['class'=> 'hide']])->dropDownList(YiiLib::loadDDList())?>
隐藏标签方式二:
= $form->field($model, 'ee_type')->dropDownList(YiiLib::loadDDList())->label(false) ?>
隐藏标签方式三:
= $form->field($model, 'ee_type', ['options'=>['class'=>'hide']])->dropDownList(YiiLib::loadDDList()) ?>
补充:
默认常规方式:
= $form->field($model, 'ee_type')->dropDownList(YiiLib::loadDDList()) ?>
修改标签内容
= $form->field($model, 'ee_type')->dropDownList(YiiLib::loadDDList())->label('Welcome To <small>YiiLib.com </small>') ?>
相关文章教程推荐:yii教程
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END