Controller:
Код: Выделить всё
'captcha' => [
'class' => 'yii\captcha\CaptchaAction',
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
],
Код: Выделить всё
public $verifyCode;
['verifyCode', 'captcha']
Код: Выделить всё
<?= $form->field($model, 'verifyCode')->widget(Captcha::className()) ?>
Товарищи, why?