How to use a static class method as a filter for Kohana's Validation Library?

joshila

New Member
Kohana's Validation library has a pre_filter() method which lets you apply any PHP function to fields to be validated, as trim(), etc.
I tried to use a static method as a filter, but won't work:
\[code\]$validation->pre_filter( 'field_name', 'class::method' )\[/code\] What that does is create two filters, one with \[code\]class\[/code\] and antoher one with \[code\]method\[/code\].Any clues?
 
Back
Top