how validation captcha in controller without models?
if in view form i write like this
echo Captcha::widget([
'name' => 'captcha',
]);
this in YII 2
how validation captcha in controller without models?
if in view form i write like this
echo Captcha::widget([
'name' => 'captcha',
]);
this in YII 2
You need to create instance of CaptchaValidator and call its validateValue in controller.