|
$config = array(
array(
'field' => 'name',
'lable' => 'username',
'rules' => 'trim|required|min_length[6]|max_length[13]|xss_clean|callback_username_check',
),
array(
'field' => 'passwd',
'lable' => '密码',
'rules' => 'trim|required|min_length[6]|max_length[15]|xss_clean|md5'
),
array(
'field' => 'repasswd',
'lable' => '确认密码',
'rules' => 'trim|required|min_length[6]|max_length[15]|xss_clean|md5|matches[passwd]'
),
);
$this->form_validation->set_rules($config);
lable里面是设置了中文的..但是验证的时候输出的不是中文。。
如果单独设置像这样子就能输出中文。。是BUG吗?
$this->form_validation->set_rules('name', '用户名', 'required|min_length[6]'); |
|