Welcome Guest, Not a member yet? Register   Sign In
Validation question
#2

[eluser]Michael Wales[/eluser]
The validation class doesn't actually change or do anything to your variables.

The validation class checks your variables against your rules - and returns whether they pass or fail via the run() mthod.

So, if you have a validation setup and going, you would use the following code:
Code:
if ($this->validation->run()) {
  // All my variables passed the rules I established
} else {
  // My variables did not pass
}

Yes, you would access your variables via the input->post() method just as you would without the validation class.


Messages In This Thread
Validation question - by El Forum - 08-09-2007, 12:38 PM
Validation question - by El Forum - 08-09-2007, 01:03 PM
Validation question - by El Forum - 08-09-2007, 03:52 PM
Validation question - by El Forum - 08-09-2007, 04:56 PM
Validation question - by El Forum - 08-09-2007, 05:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB