您的位置: 首页 > IT文章 > yii2添加自定义字段 yii2添加自定义字段 分类: IT文章 • 2025-01-31 19:25:25 在模型model文件中,添加 public $attributes;即可,$attributes 为要添加的新字段