lang和matches如何结合使用
表单验证规则array(
'field' => 'password',
'label' => 'lang:password',
'rules' => 'required'
),
array(
'field' => 'passconf',
'label' => 'lang:passconf',
'rules' => 'required|matches'
),
密码不匹配提示“字段 确认密码 与 lang:password 不一致.”
如何使用lang让他显示成 “字段 确认密码 与 密码 不一致. ” 不会自动替换成语言包里的文字?我没注意过,也许是个 bug,不知道大家有谁注意过? 不是不能自动替换,前边的“确认密码”就是替换过来了的
但是后边的规则“matches”的错误输出里不能替换。 不是不能自动替换,前边的“确认密码”就是替换过来了的
但是后边的规则“matches”的错误输出里不能替换 ...
itian 发表于 2009-11-2 09:53 http://codeigniter.org.cn/forums/images/common/back.gif
那如果不能替换的话,就是 BUG。 不是bug,是写法的问题
写成lang:password不行,但是写成lang('password')就可以了 是bug , 我在google 里找到
http://codeigniter.com/bug_tracker/bug/9576/
页:
[1]