Hi everybody!
Captcha image does not display in view at …/backend/…,but at …/frondend/… everything is ok.
In SiteController:
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
'captcha' => [
'class' => 'yii\captcha\CaptchaAction',
'maxLength'=> 8,
'minLength'=> 6,
],
];
}
IN view:
$form = ActiveForm::begin(…
echo $form->field($modelRequestPasswordReset, ‘verifyCode’)->widget(Captcha::className(), [
//'options'=>['id'=>'txtVerifyCode'],
'captchaAction'=>'/site/captcha',
'template' => '<div class="row"><div class="col-xs-3">{image}</div><div class="col-xs-6" style="margin-left:0px;">{input}</div></div>',
]);
…
ActiveForm::end();
Anybody have any idea?Please help me this!Thanks.