public function doAssignerSU() {
$this->form_validation->set_rules('username', 'Username', 'required|alpha_numeric');
$this->form_validation->set_rules('password', 'Password', 'required|alpha_numeric|min_length[4]');
$this->form_validation->set_message('min_length','Minimum of 4 characters');
当我在视图中显示我的验证错误,但它仍然显示预设“的{}场必须是最低..”笨set_message不工作
什么是我的错?在此先感谢
@Parvez没有错误。它只是没有为'min_length'规则设置我的自定义消息。 –