Can't show image captcha

Hi All,

I would like to create form with captcha. But my captcha element can’t not show image on IE,FireFox …

I have enable to load extension=php_gd2.dll file.


And my form with yii framework


$form = $this->beginWidget('CActiveForm',array('id'=>'newuser'));




			<td><?php $form->widget('CCaptcha',array('showRefreshButton'=>true,

														                                                             'buttonLabel'=>"get new code")); ?>


			<td><?php echo $form->textField($model,'verifyCode')?></td>



<?php $this->endWidget();?>

And my model

class NewUser extends CFormModel


	public 	$name;

	public 	$pass;

	public 	$repass;

	public	$email;

	public	$date;

	public 	$dateCreate

	public 	$verifyCode;

	public function rules()


		return array(

			array('name, pass,repass,email,date', 'required','message'=>'{attribute} không thể bỏ trống'),

			array('email','email','message'=>'{attribute} không hợp lệ'),





					'message'=>'Mật khẩu không giống'),




But default control "contact" has show image captcha. And my form but not. Help me, I start to learning yii framework.

and there are image:

that’s my problem.

any ideas?


I also face the same problem so please if you get the solution then let me know.

Thanks & Regards,



just try these one help more Extension that i have used and that working fine

if follows these steps

Thanks & regards