Welcome Guest, Not a member yet? Register   Sign In
Form_validation error messages {value}?

Is it possible to use something like {value} in form_validation error messages?
Like {field} and {param} in the next message:
PHP Code:
$lang['form_validation_exact_length']    = 'The {field} field must be exactly {param} characters in length.'

i think it can be handle by using call back seems like prevent same value inserted twice

Yes callback takes value as parameter. Thanks. But is there an universal solution for all rules in lang file?

No, since form_validation messages are usually displayed on the same form as the original values, and may be used in some cases to determine whether the values are safe, there is not currently (and there probably are no plans to add) a method of automatically including the value in the message.

Theme © iAndrew 2016 - Forum software by © MyBB