Open agentphoenix opened 13 years ago
I got this working ... I think. These are the changes I made to classes/jelly/core/validator.php:
On line 10, change abstract class Jelly_Core_Validator extends Validate
to abstract class Jelly_Core_Validator extends Validation
.
On line 224, change if ( ! Validation::not_empty($this[$field]))
to if ( ! Validation::rule($this[$field], 'not_empty'))
.
There may be more. I'll comment on this some more if I find other issues. I haven't looked through the Validation class and compared it to Jelly's validator to see if there are other changes to be made. I'll also make these changes on my fork and issue a pull request.
if ( ! Valid::not_empty($this[$field]))
Even better. Thanks!
Kohana has changed the name of the validation class from Validate to Validation. In addition, they've gotten rid of Validate::not_empty method which throws an exception.