Wiki articles in category Tips tagged with "validation"

Showing 1-1 of 1 item.

Debugging CActiveRecord failed save() attempts

Created 12 years ago by Boaz Boaz, updated 11 years ago by Boaz Boaz.

When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

4 0
2 followers
Viewed: 42 473 times
Version: 1.1
Category: Tips