yii中为模型的attributes赋值失败的解决方法是:在model的rules中,把想要修改的字段的属性设置为安全即可,如【array('field1 , field2 ,field3', 'safe')】。
技术文章 / 下载软件趣味内容 / 专业带飞