Showing 1-9 of 9 items.

Debugging CActiveRecord failed save() attempts

Created 13 years ago by Boaz Boaz, updated 12 years ago by Boaz Boaz. 0 comments

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
Viewed: 43 688 times
Version: 1.1
Category: Tips

Reference: Model rules validation

Created 16 years ago by krillzip krillzip, updated 12 years ago by Rodrigo Rodrigo. 7 comments

This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

99 0
114
Viewed: 920 493 times
Version: 1.1
Category: How-tos