• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split Form Validation

#5
[eluser]CodeIgniterNewbie[/eluser]
[quote author="noctrum" date="1266033273"]You can just call one callback in form_validation, and nest the rest within that one.

Code:
function callback_function1($str) {
    if(some_validation) {
        return $this->callback_function2($str);
    }

    return false;
}

function callback_function2($str) {
    if(some_more_validation) {
        return true;
    }

    return false;
}
[/quote]

This might work. I'll look into it.


Messages In This Thread
Split Form Validation - by El Forum - 02-12-2010, 12:46 PM
Split Form Validation - by El Forum - 02-12-2010, 03:51 PM
Split Form Validation - by El Forum - 02-12-2010, 03:54 PM
Split Form Validation - by El Forum - 02-12-2010, 04:30 PM
Split Form Validation - by El Forum - 02-12-2010, 04:32 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.