sasori
(Nemo Md5)
1
hi, how to show a different code in the captcha box every time a user refreshes or reloads the browser ?
<div id="captchaBox" style="border-bottom: 1px solid #E2E2E2; padding-bottom:10px;">
<?php $this->widget('CCaptcha', array('clickableImage' => true)); ?>
</div>
softark
(Softark)
2
I think you can configure CCaptchaAction::testLimit to 1 to achieve that.
public function actions()
{
return array(
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha'=>array(
'testLimit' => 1,
),
...
);
}
http://www.yiiframework.com/doc/api/1.1/CCaptchaAction#testLimit-detail