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'規則設置我的自定義消息。 –