Kohana 3.2 validation custom error adds form.field in front of error
public function cc($validation, $value, $field)
{
if(!$value)
{
$validat开发者_运维百科ion->error($field, 'error abc');
}
}
So, this code display error message like this: form.message.error abc
What am I doing wrong here?
You are getting an error message key. You should modify the message file and set your error message key and text there.
精彩评论