CCaptcha não exibindo nenhuma imagem yii
Eu tenho um formulário de registro do usuário, em que estou tentando exibir uma imagem Captcha usando o widget Yii CCaptcha, no entanto o link da imagem aparece quebrado, arquivo do controlador:
public function actions()
{
return array(
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha'=>array(
'class'=>'CCaptchaAction',
'backColor'=>0xFFFFFF,
),
);
}
Arquivo Modelo:
public function rules()
{
return array( array('verifyCode','captcha','allowEmpty'=>!CCaptcha::checkRequirements(),'on'=>'insert'),
);
}
E veja o arquivo:
<?php if(CCaptcha::checkRequirements()): ?>
<div class="row">
<?php echo $form->labelEx($model,'verifyCode'); ?>
<div>
<?php $this->widget('CCaptcha'); ?>
<?php echo $form->textField($model,'verifyCode'); ?>
</div>
<div class="hint">Please enter the letters as shown.
<br/>Letters are not case-sensitive.</div>
<?php echo $form->error($model,'verifyCode'); ?>
</div>
<?php endif; ?>
Como resposta fornecida em algum lugar eu também tentei dar as regras de acesso no meu arquivo de controlador como
public function accessRules()
{
return array(
array('allow',
'actions' => array('captcha'),
'users' => array('*'),
),
);
}
Mas nada parece estar funcionando.