Welcome Guest, Not a member yet? Register   Sign In
1 error message at the time, custom regexp check on field
#3

[eluser]CrustyDOD[/eluser]
I was thinking something like:
Code:
class MY_Validation extends CI_Validation
{
    function __construct()
    {
        parent::CI_Validation();
    }

    public function showFirstError()
    {
        // $this->_error_array contains ALL errors created by RUN function
        // You just take item at [0] in array if it exists and show it, job done..
        return $this->_error_array[0];
    }
}
That's all i want, first come first served. Simple Smile

What did you mean by:
Quote:All regex rules are in a method.

Thanks for the reply tho! I shall include this two things then..


Messages In This Thread
1 error message at the time, custom regexp check on field - by El Forum - 10-21-2008, 04:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB