Welcome Guest, Not a member yet? Register   Sign In
When are the config_rules loaded for form_validation library?
#3

[eluser]amites[/eluser]
went back over what you did, the load through config makes sense,

the "steal"ing version is similar to what I have going on

Code:
class MultiValid extends CI_Form_validation {

    function multi_rules($group = '') {
        
        $t = $this->_config_rules;
        if (is_array($t)) print_r($t);
            else echo 'nope';
            
        $set = false;
        if (is_array($group)) {
            foreach ($group as $grp) {
                if ($grp != '') {
                    
                    $this->set_rules($grp);
                    $set = true;
                }
            }
        }
        
        return $set;        
    }
}

echoes 'nope' every time after I load the form_validation library,
however from the first line of run _config has been populated,

I'm just wondering how I can force them to load earlier, no need to run multiple copies of an array like that (if I can avoid it)

thank you for your help


Messages In This Thread
When are the config_rules loaded for form_validation library? - by El Forum - 12-24-2008, 10:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB