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

后端 未结 6 1807
予麋鹿
予麋鹿 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 21:59

    Hello Guys I found the solution for working with call_backs in hmvc codeIgniter. I would like to post the solution for others.

    Solution:

    1. Create MY_Form_validation.php file in libraries folder and paste following code in it.

     if (!defined('BASEPATH')) exit('No direct script access allowed');
        class MY_Form_validation extends CI_Form_validation
        {
    
        function run($module = '', $group = '')
        {
           (is_object($module)) AND $this->CI = &$module;
            return parent::run($group);
        }
    }
    

    1. And change if ($this->form_validation->run() == FALSE) to if ($this->form_validation->run($this) == FALSE) thats all folks..

提交回复
热议问题