Yii Framework Forum: Captcha Extended Not Showing Up Images. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Captcha Extended Not Showing Up Images. Rate Topic: -----

#1 User is offline   Ravi P Thanki 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 61
  • Joined: 18-March 13
  • Location:Ahmedabad

Posted 17 July 2013 - 08:34 AM

My code is

<?php if(extension_loaded('gd')): ?>
<div class="field">
<?php echo $form->labelEx($model2,'verifyCode'); ?>
<div>
<?php $this->widget('CCaptcha'); ?>

<?php echo $form->textField($model2,'verifyCode'); ?>
</div>

<?php echo $form->error($model2,'verifyCode'); ?>
</div>
<?php endif; ?>

controller code is :

public function init(){
// import class paths for captcha extended
Yii::$classMap = array_merge( Yii::$classMap, array(
'CaptchaExtendedAction' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedAction.php',
'CaptchaExtendedValidator' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedValidator.php'
));
}

site controller code is

'captcha'=>array(
'class'=>'CCaptchaAction',
'class'=>'CaptchaExtendedAction',
'backColor'=>0xFFFFFF,
),
Ravi Thanki
Yii,Cakephp and Magento Developer,
blog:http://ravithanki.wordpress.com
0

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 469
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 18 July 2013 - 10:52 AM

make sure you have GD or Imagemagick installed.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users