-
Notifications
You must be signed in to change notification settings - Fork 33
custom error message
Inhere edited this page Feb 12, 2019
·
1 revision
设置当前规则的错误提示消息, 设置了后就不会在使用默认的提示消息。
['title', 'customValidator', 'msg' => '{attr} error msg!' ], // 指定当前规则的消息
// o, 可以是数组哦 :)
['tagId, title, userId, freeTime', 'required', 'msg' => [
'tagId' => 'message ...',
'userId' => 'message 1 ...',
]],
我的其他项目
- inhere/console 一个功能全面的php命令行应用库
- inhere/sroute 轻量且快速的HTTP请求路由库