php - yii2save插入数据无效
phpcn_u1582
phpcn_u1582 2017-05-16 13:12:37
0
2
236



为什么会没有数据啊?

phpcn_u1582
phpcn_u1582

reply all(2)
Ty80

You must write rules and the field is required before you can insert it

Peter_Zhu

After executing the save() method, you can get the error information according to $model->errors and modify it according to the error prompt

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!