|
发表于 2009-3-3 09:10:39
|
显示全部楼层
第一个问题用自定义的config文件
第二个问题,设置 $this->form_validation->set_message('max_length', '啊哈...这儿不能超出 %s 个字符');
注意看手册
原文:
Where rule corresponds to the name of a particular rule, and Error Message is the text you would like displayed.
If you include %s in your error string, it will be replaced with the "human" name you used for your field when you set your rules.
额,我还没翻译完,等剃头了回来把这一篇翻译一下 |
|