Welcome Guest, Not a member yet? Register   Sign In
validation or form_validation?
#1

[eluser]WoolyG[/eluser]
Hi,

Which of these libraries is the non-deprecated one? validation or form_validation?

I'm asking because if I use validation->run() instead of form_validation->run(), then the following happens:

Code:
if($this->validation->run()==FALSE){ // Properly shows invalid message

and

Code:
if($this->form_validation->run()==FALSE){ // Does not work; Sends data through as valid

Anyone?
WoolyG
#2

[eluser]WanWizard[/eluser]
validation is the deprecated one, you should use form_validation.

What are your validation rules?
#3

[eluser]Thorpe Obazee[/eluser]
@OP. Perhaps you're not using it correctly. There's a huge difference in how they are used.
#4

[eluser]WoolyG[/eluser]
Hi,

Thanks for that. I was using my rules incorrectly - I spent a bit of time with it, and all good now. Still getting used to CI.

WoolyG




Theme © iAndrew 2016 - Forum software by © MyBB