In reference to t408
I believe this change r2123 was a partial fix, but not a complete one. This happened because of how I described the problem.
The problem still occurs when the following is used
$forge = new Forge(NULL, 'Some Form');
$forge->unknownFunction();
The error will still be blank because an unknown input has no class defined ie
Unable to find a Forge input class for: ________
If one looks in the stack they will be able to diagnose their problem, but a very easy fix is to either
if ( ! ($input instanceof Form_Input) AND ! ($input instanceof Forge))
- throw new Kohana_Exception('forge.unknown_input', get_class($input));
+ throw new Kohana_Exception('forge.unknown_input', $input);
or
if ( ! ($input instanceof Form_Input) AND ! ($input instanceof Forge))
- throw new Kohana_Exception('forge.invalid_input', get_class($input));
+ if ( ! empty(get_class($input)))
+ throw new Kohana_Exception('forge.unknown_input', get_class($input));
+ else
+ throw new Kohana_Exception('forge.unknown_input', $input);