public function attributeLabels() { return ['id' => 'ID', 'username' => '用户名', 'real_name' => '真实姓名', 'password' => '密码', 'gender' => '性别', 'email' => '邮箱', 'mobile' => '手机', 'status' => '状态', 'created_at' => '创建时间', 'updated_at' => '更新时间']; }
/** * @inheritdoc */ public function attributeLabels() { $labels = parent::attributeLabels(); return array_merge($labels, ['password' => 'Password', 'repassword' => 'Confirm Password', 'oldpassword' => 'Old Password', 'file' => 'Profile Picture']); }