CodeIgniter - Unable to access an error message corresponding to your field name Password.(pword_check)

后端 未结 6 1808
予麋鹿
予麋鹿 2020-12-09 21:53

I am a new to codeIgniter and I just got stuck in the very beginning. I am using HMVC extention and while validating I am getting the following error:

Unable

6条回答
  •  我在风中等你
    2020-12-09 22:01

    public function pword_check($str)
    {
    
        if ($str == 'test')
        {
            $this->form_validation->set_message(  __FUNCTION__ , 'The %s field can not be the word "test"');
            return FALSE;
        }
        else
        {
            return TRUE;
        }
    }
    

    // Its working well

    https://github.com/bcit-ci/CodeIgniter/issues/3908

提交回复
热议问题