tryiimath Tryiimath

  1. Documentation
  2. Change Log

Math Challenge, captcha alternative. Forget about image captchas. Try Tryiimath :D

Resources

screenshot

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example for contact form:

// protected/views/site/contact.php:
// replace captcha row:
	<div class="row">
		<?php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		<?php $this->widget('application.extensions.tryiimath.ETryiimath'); ?>
		<?php echo $form->textField($model,'verifyCode'); ?>
		</div>
		<div class="hint">Please enter the math result.</div>
	</div>

// protected/models/ContactForm.php
// replace verifyCode line:
			array('verifyCode', 'application.extensions.tryiimath.ETryiimathValidator'),

// protected/controllers/SiteController.php
// include TryiiMath Action:
<?php
Yii::import('ext.tryiimath.ETryiimathAction');
// ...
// define action:
	public function actions()
	{
		return array(
			// captcha action renders the CAPTCHA image displayed on the contact page
			'tryiimath'=>array(
				'class'=>'ETryiimathAction',
			),
// ...

Change Log

May 25, 2010
  • Initial release. version 0.1
2 1
3 followers
852 downloads
Yii Version: 1.1
License: GPL-3.0
Category: Validation
Tags:
Developed by: totoloco
Created on: May 25, 2010
Last updated: 13 years ago

Downloads

show all