Controller 中获取验证码值,如下:
$this->createAction('captcha')->getVerifyCode();
上一篇:yii2如何判断数据库字段不为空
下一篇:yii框架如何配置pathinfo的模式