开发者

Kohana 3.2 validation custom error adds form.field in front of error

开发者 https://www.devze.com 2023-04-05 00:30 出处:网络
public function cc($validation, $value, $field) { if(!$value) { $validat开发者_运维百科ion->error($field, \'error abc\');
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

精彩评论

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

关注公众号