hi,all
如何得到CaptchaAction session中当前的验证码的值,我不是使用系统的模型自动验证!我是不是要重写验证码的组件,如何重写?
很久,跪谢
hi,all
如何得到CaptchaAction session中当前的验证码的值,我不是使用系统的模型自动验证!我是不是要重写验证码的组件,如何重写?
很久,跪谢
$captcha=$this->createAction('captcha');
if($captcha===null)
throw new CException('找不到验证码captcha的act');
if(!$captcha->validate($_POST['capchaCode'],false))
{
$this->verifyCodeErr = '验证码错误';
return $comment;
}
楼主的意思是不是没有form表单呢?
恩 ajax提交