Welcome Guest, Not a member yet? Register   Sign In
Form_Validation Config file not working
#3

[eluser]thors1982[/eluser]
Not sure I fully understand... but I got it working by doing this

Code:
class MY_Form_validation extends CI_Form_validation
{
    function MY_Form_validation($rules = array())
    {
        parent::CI_Form_validation();

        // Validation rules can be stored in a config file.
        $this->_config_rules = $rules;

        $this->set_error_delimiters('<span class="Warning">', '</span>');
    }
    
}

Hopefully nothing is wrong with that method....

I do have another question though. Is it possible to call two $config rule groups?

So I could put email on its own group, so I could use it seperatly. But if i wanted to use the email validation on the signup page as well, i could call both groups signup and email.


Messages In This Thread
Form_Validation Config file not working - by El Forum - 03-24-2010, 09:13 AM
Form_Validation Config file not working - by El Forum - 03-24-2010, 11:42 AM
Form_Validation Config file not working - by El Forum - 03-24-2010, 01:04 PM
Form_Validation Config file not working - by El Forum - 03-25-2010, 01:12 AM
Form_Validation Config file not working - by El Forum - 05-03-2010, 03:17 AM
Form_Validation Config file not working - by El Forum - 08-02-2010, 04:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB