Welcome Guest, Not a member yet? Register   Sign In
Custom errors in Form Validation (basic)
#2

[eluser]pistolPete[/eluser]
Since MY_Form_validation is just a subclass of Form_validation, you could use:
Code:
function set_error($error = '')
{
        if (empty($error))
        {
            return FALSE;
        }
        else
        {
           $this->_error_array['custom_error'] = $error;
           return TRUE;
        }
}


Messages In This Thread
Custom errors in Form Validation (basic) - by El Forum - 03-11-2009, 05:25 PM
Custom errors in Form Validation (basic) - by El Forum - 03-12-2009, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB