开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜