mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
Form asset bundle registering code moved from ActiveForm::run() to the *Validator::clientValidateAttribute().
This commit is contained in:
@@ -112,6 +112,7 @@ class RegularExpressionValidator extends Validator
|
||||
$options['skipOnEmpty'] = 1;
|
||||
}
|
||||
|
||||
$view->registerAssetBundle('yii/form');
|
||||
return 'yii.validation.regularExpression(value, messages, ' . Json::encode($options) . ');';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user