diff --git a/README.md b/README.md index 21e3b2c..edb7823 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,4 @@ use daimakuai\captcha\Captcha; $form->field($model, 'verifyCode')->widget(Captcha::className()) ?> +'captchaimg','captchaAction'=>'captcha']); ?> \ No newline at end of file diff --git a/assets/yii.captcha.validation.js b/assets/yii.captcha.validation.js index d5e007a..720b366 100644 --- a/assets/yii.captcha.validation.js +++ b/assets/yii.captcha.validation.js @@ -1,4 +1,4 @@ -var validation = yii.validation; +var validation = var validation = new Object();//yii.validation; validation.changeInvalidNumbers = function(input){ var enNumbers = {