在rules中为每个字段配置验证器,在使用
model->save()时,触发验证
model->validate()方法
yii2之rules触发
猜你喜欢
转载自blog.csdn.net/qq_33876293/article/details/83061324
今日推荐
周排行