w2c
- w2c 2017-12-23 已签到连续签到5天,获得了20个金钱
- w2c 2017-12-25 已签到连续签到7天,获得了20个金钱
- w2c 2017-12-22 已签到连续签到4天,获得了20个金钱
- w2c 2017-12-21 已签到连续签到3天,获得了15个金钱
- w2c 2017-12-20 已签到连续签到2天,获得了10个金钱
- w2c 2017-12-19 已签到连续签到1天,获得了5个金钱
验证码不变需要改框架源码 vender\yiisoft\yii2\captcha\CaptchaAction.php getVerifyCode($regenerate = true)
验证码总是错误 应该是你的 $captchaAction 属性没有设置正确。
model 的rules方法
['captcha', 'captcha', 'message'=>'验证码错误', 'captchaAction'=>'user/captcha'],模板的地方也有个 captchaAction 选项。
<?php echo Captcha::widget(['name'=>'captchaimg','captchaAction'=>'login/captcha','imageOptions'=>['id'=>'captchaimg', 'title'=>'换一个', 'alt'=>'换一个', 'style'=>'cursor:pointer;'],'template'=>'{image}']); ?>果然是正解,特别是模块下的验证码验证,一定要注意model层中rules中的'captchaAction'=>'模块名/控制器/captcha'。
- w2c 2017-12-14 已签到连续签到1天,获得了5个金钱
- w2c 发布了话题YII2.0如何设置TDK
- w2c 2017-12-11 已签到连续签到1天,获得了5个金钱