<div id="captchaBox" style="border-bottom: 1px solid #E2E2E2; padding-bottom:10px;">
<?php $this->widget('CCaptcha', array('clickableImage' => true)); ?>
</div>
Page 1 of 1
How To Refresh Captcha On Page Reload help
#1
Posted 01 January 2013 - 07:27 PM
hi, how to show a different code in the captcha box every time a user refreshes or reloads the browser ?
#2
Posted 01 January 2013 - 08:30 PM
I think you can configure CCaptchaAction::testLimit to 1 to achieve that.
http://www.yiiframew...estLimit-detail
public function actions()
{
return array(
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha'=>array(
'testLimit' => 1,
),
...
);
}
http://www.yiiframew...estLimit-detail
Share this topic:
Page 1 of 1

Help













