Please, help me fix this.
I don’t know whay Captchat image not showing ?
check gd ext: passed.
Yii version 1.1.12
Code Model Contact.php
public $validacion;
array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements(), 'captchaAction' =>
'about/captcha', 'on' => 'useCaptcha'),
Code AboutController.php
public function actions()
{
return array(
'captcha' => array(
'class' => 'CCaptchaAction',
'backColor' => 0xFFFFFF,
),
);
}
Code View
<?php if (extension_loaded('gd')): ?>
<?php if (CCaptcha::checkRequirements()): ?>
<div class="row">
<?php echo $form->labelEx($model, 'verifyCode', array('class' => 'label-contact')); ?>
<div class="captcha">
<?php
$this->widget('CCaptcha', array(
'captchaAction' => 'about/captcha'
));
?>
<?php
echo $form->textField($model, 'verifyCode', array(
'placeHolder' => Yii::t('contact', 'Captcha'),
'class' => 'input-contact'));
?>
<font color="red"><?php echo $form->error($model, 'verifyCode'); ?></font>
</div>
</div>
<!-- <div class="row">
<label class="label-contact"> </label>
</div>-->
<?php endif; ?>
<?php endif; ?>