当我点击它时,我需要更改验证码图像,验证码的表格位于CJuiDialog.Also表格通过ajax加载在视图中我设置:
<?php $this->widget('CCaptcha', array('clickableImage' => true,'showRefreshButton'=>false,'captchaAction'=>'/site/captcha')); ?>
但是当我点击图片时它没有改变。告诉我,我做错了什么?
答案 0 :(得分:0)
只需在widget中添加id:
<?php $this->widget('CCaptcha', array('id'=>'captahca_id','clickableImage' => true,'showRefreshButton'=>false,'captchaAction'=>'captcha')); ?>