Form asset bundle registering code moved from ActiveForm::run() to the *Validator::clientValidateAttribute().

This commit is contained in:
resurtm
2013-05-15 23:33:55 +06:00
parent f7b8595f76
commit bf1b2d9956
11 changed files with 16 additions and 9 deletions

View File

@@ -112,6 +112,7 @@ class RegularExpressionValidator extends Validator
$options['skipOnEmpty'] = 1;
}
$view->registerAssetBundle('yii/form');
return 'yii.validation.regularExpression(value, messages, ' . Json::encode($options) . ');';
}
}