Hi Everyone
I want to change the default url of the captcha
for example on refresh captcha link I want
r=mymodule/action1/mycaptcha&refresh=1&_=8766547
Instead of default
r=mymodule/action1/captcha&refresh=1&_=8766547
How to achieve this?
Hi Everyone
I want to change the default url of the captcha
for example on refresh captcha link I want
r=mymodule/action1/mycaptcha&refresh=1&_=8766547
Instead of default
r=mymodule/action1/captcha&refresh=1&_=8766547
How to achieve this?
CCaptcha::captchaAction()
Aside from that, you’ll need to change the configuration of the action in the controller (and the access rules).
Keith,
I changed the widget settings like this
$this->widget('CCaptcha',array('captchaAction'=>'mycaptcha'));
Also I changed the accessRules to mycaptcha (as we have conversation in previous post )
Everything works ok (no broken images, refresh etc) except the submitted form.
When the validate form called then error exception occurs
The CCaptchaValidator.action "captcha" is not valid.
I can’t change the validator name in CFormModel
array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements()),
because the validator name is ‘captcha’
Any suggestion ?
For second time today I found the solution
I have to assign both widget and CFormModel rule validator the same setting ‘captchaAction’
Keith, just became a member with triple Reputation number
This is truly an honour. I’d like to take this opportunity to thank all my fans and the people who have supported me and helped me to get where I am today.
Edit:
I just want to clarify that the above comment is slathered with British sarcasm, before I get lynched…
Too late, mob is on their way! Sorry pal.