Welcome Guest, Not a member yet? Register   Sign In
Form validation won't call the callback function
#1

[eluser]xarazar[/eluser]
Hi guys,
I don't know what happened but I'm facing some bizarre behaviour of the form_validation class. The callback function in the code below simply doesn't work (it's not getting called).
It's a simple MVC setup (not HMVC).
Both methods are in the same class.
I tried adding My_Form_validation like so:

Code:
class MY_Form_validation extends CI_Form_validation{
    
    function run($module = '', $group = ''){
        (is_object($module)) AND $this->CI = &$module;
            return parent::run($group);
    }
    
}
according to suggestions in some post on the forum and it partly works (the callback function is triggered).

But in a simple MVC system I shouldn't be forced to do that, should I?
Anybody any ideas?

Many thanks


Messages In This Thread
Form validation won't call the callback function - by El Forum - 01-26-2011, 09:47 AM
Form validation won't call the callback function - by El Forum - 01-27-2011, 07:12 AM
Form validation won't call the callback function - by El Forum - 01-27-2011, 07:16 AM
Form validation won't call the callback function - by El Forum - 01-27-2011, 07:22 AM
Form validation won't call the callback function - by El Forum - 01-27-2011, 07:27 AM
Form validation won't call the callback function - by El Forum - 01-27-2011, 08:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB