摘要: 可以在对应的Controller的action中设置$model->type = 1;在view中 field($model, 'type')->radioList(['1'=>'男','0'=>'女'])?>这样在create的时候,就可以有默认值了 阅读全文
posted @ 2015-09-22 16:51 慕尘 阅读(2642) 评论(0) 推荐(0) 编辑