yii2添加自定义字段

在模型model文件中,添加

public $attributes;即可,$attributes 为要添加的新字段

posted @ 2014-09-15 16:21  Echo正在输入  阅读(1916)  评论(0编辑  收藏  举报