Captcha for Yii 1.1.x that renders Persian Number. It's an extension of CCaptcha.
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.
```php
/* $this->widget('CCaptcha'); */
$this->widget('ext.RezvanCaptcha.RezvanCaptcha');
```
Replace "CCaptchaAction" with "ext.RezvanCaptcha.RezvanCaptchaAction" in your controller.
```php
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](http://dkr.co.ir/donate)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.