Yii 1.1: rezvan-captch

Captcha that renders Persian Number.
1 follower

Captcha for Yii 1.1.x that renders Persian Number. It's an extension of CCaptcha.
sample

Requirements

  • Yii Version 1.1.13 or later
  • PHP GD + FreeType extension or PHP ImageMagick extension

Usage

Place "RezvanCaptcha" directory that contains 3 files in it under the extensions directory of the application.

    protected
      extensions
        RezvanCaptcha
          RezvanCaptcha.php
          RezvanCaptchaAction.php
          BTC-Fa.ttf

Replace "CCaptcha" with "ext.RezvanCaptcha.RezvanCaptcha" in your view script.

/* $this->widget('CCaptcha'); */
    $this->widget('ext.RezvanCaptcha.RezvanCaptcha');

Replace "CCaptchaAction" with "ext.RezvanCaptcha.RezvanCaptchaAction" in your controller.

public function actions()
    {
        return array(
            'captcha'=>array(
                /* 'class'=>'CCaptchaAction', */
                'class'=>'ext.RezvanCaptcha.RezvanCaptchaaAction',
                'backColor'=>0xFFFFFF,
            ),
            ...
        );
    }

Donate

Want to say thanks for the time and efforts put on this project?
Donate

Be the first person to leave a comment

Please to leave your comment.

Create extension