When a non existent method is requested from Forge (ie Forge::render in 2.1.1 release) it returns the following error:
Framework Error
Please check the Kohana documentation for information about the following error.
Invalid input type requested:
Error occurred at line 101 of /www/kohana/v2.1.1/modules/forge/libraries/Forge.php.
However, note the "Invalid input type requested:". It is misleading on two points. First it implies that the input type wasn't requested and secondly it implies that one specified an input type.
Code:
if ( ! ($input instanceof Form_Input) AND ! ($input instanceof Forge))
throw new Kohana_Exception('forge.invalid_input', get_class($input));
Here is a possible fix, if necessary...
Code:
$class = get_class($input);
if ( ! ($input instanceof Form_Input) AND ! ($input instanceof Forge))
if ( ! empty($class))
throw new Kohana_Exception('forge.invalid_input', $class);
else
throw new Kohana_Exception('forge.invalid_method', $method);