That is shown for every rule that doesn't have a message setJon Pokress wrote on Friday 20th of May 2011:Thanks, this works, sorta (the user gets a not so nice message 'Validation rulle is_numeric failed for {field}' - yuk : )
What it means is that both are cast to a float and then compared, not that they check whether the input is numeric. Might warrant a note about that for both though.I was confused on this issue because the documentation on this validation rule (http://fuelphp.com/docs/classes/validation.html) says numeric_min $min_val Tests whether the given input is a number that is greater than $min_val.
numeric_max $max_val Tests whether the given input is a number that is smaller than $max_val.
Might help, though it would be better if you checked is_numeric and were to cast it to a numeric value before by adding floatval or intval to the rules before testing the min/max values. I'll think about it, but as always: if you really feel that way, fork the repo, make the change and pull-request.Thus I was lead to believe that is_numeric was being checked in the rule - would be a smart addition me thinks.
It looks like you're new here. If you want to get involved, click one of these buttons!