Simple Captcha Plugin for croogo and cakephp
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
controllers
libs
models
tests
vendors
views
webroot
.gitignore
LICENSE
README
simple_captcha_app_controller.php
simple_captcha_app_model.php

README

SimpleCaptcha Plugin Version 0.1
--------------------------------

An adaptation of Arvind K's Captcha component into a Croogo plugin.

It should be straight forward to use this in a plain cakephp application as well.

Eg:
```php
// models/user.php
class User extends AppModel {

	var $actsAs = array('SimpleCaptcha.Captcha');
	var $helpers = array('SimpleCaptcha.Captcha');

}
```

```
// controllers/users_controller.php
class UsersController extends AppModel {
	var $components = array('SimpleCaptcha.Captcha');
}

```

```php
// views/users/register.ctp
echo $this->Form->create('User');
echo $this->Form->input('name');
...
echo $this->element('captcha', array('plugin' => 'SimpleCaptcha'));
```

Good luck and have fun.
-- rchavik