1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 * Outputs the dynamic Captcha resource.
4 * Usage: Call the Captcha controller from a view, e.g.
5 * <img src="<?php echo url::site('captcha') ?>" />
7 * $Id: captcha.php 3769 2008-12-15 00:48:56Z zombor $
11 * @copyright (c) 2007-2008 Kohana Team
12 * @license http://kohanaphp.com/license.html
14 class Captcha_Controller extends Controller {
16 public function __call($method, $args)
18 // Output the Captcha challenge resource (no html)
19 // Pull the config group name from the URL
20 Captcha::factory($this->uri->segment(2))->render(FALSE);
23 } // End Captcha_Controller