I want to set safe or allow empty captcha on scenario like bellow code.
public function rules() {
return [
[['verifyCode'], 'safe', 'on'=>'admin'],
];
}
But it does not work, and I got this error.
Invalid CAPTCHA action ID: site/captcha
and also this page didn't help me.