V
V
Vitaly Liber2015-04-22 12:07:05
Yii
Vitaly Liber, 2015-04-22 12:07:05

How to remove captcha yii2 from CRUD?

Added widget captcha to the form. However, captcha validation has also been added to CRUD. Is there an option to disable it for CRUD? Maybe there are some options for captcha?

<?= $form->field($model, 'verifyCode')->widget(Captcha::className()) ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-22
@butteff

Well, you can just remove it. Why captcha if you don't check it?
And so, all methods and options are in the documentation . You can also probably make the captcha an optional parameter, but I'm not sure. Just in rules() in form model, remove captcha from required - might work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question