Showing 1-14 of 14 items.

Integrating Yii3 packages into WordPress

Created 2 years ago by Gabriel A. López López Gabriel A. López López, updated 2 years ago by Gabriel A. López López Gabriel A. López López. 0 comments

I was recently assigned with the task of integrating several extensive forms into a WordPress website. These forms comprised numerous fields, intricate validation rules, dynamic fields (one to many relationships) and even interdependencies, where employing PHP inheritance could mitigate code duplication.

2 0
2
Viewed: 39 266 times
Version: 3.0
Category: How-tos

Model validation for field ranges using yii2-field-range extension

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V Kartik V. 0 comments

The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37
Viewed: 33 525 times
Version: 2.0
Category: Tips

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