[Extension] EActiveForm

This extension just extend from {link: CActiveForm} using few codes, it enhances the ajax validation.

  • Submit a list of changed attributes to php backend, then can access the attributes list in Controller via $_POST[‘attributes’][‘ModelName’] and verify these attributes only.

See my another post:

http://www.yiiframework.com/forum/index.php?/topic/12930-improve-ajax-validation-of-activeform/

But now I put this functionality into the EActiveForm, and need not modify the core javascript jquery.yiiactiveform.js

  • First to do client-side javascript validations before submission of ajax, and js validators converted from {link: CValidator} automatically.

Using this extension is same as original CActiveForm.

See extension page:

http://www.yiiframework.com/extension/eactiveform/

Supported Validators:

‘CRequiredValidator’,‘CRegularExpressionValidator’,

‘CEmailValidator’,‘CUrlValidator’,‘CCompareValidator’,

‘CStringValidator’,‘CRangeValidator’,‘CNumberValidator’,

‘CBooleanValidator’