Welcome Guest, Not a member yet? Register   Sign In
New v1.7 validation
#1

[eluser]internut[/eluser]
Hey guys,

I like the new method the validation now uses with 1.7. I'm working on converting now.

This may be a dumb question but I copied validation.php into the library folder after making some additions to it.

Do I need to use the new one and place my changes into the 1.7 new version or just update the validation field/rules/etc calls?

I'm thinking I need to add my additions to the new validation library but wanted to make sure. First glance it did not look like a whole lot changed within it.
#2

[eluser]OES[/eluser]
As you have said 1.7 has a new validation. You need to call it by form_validation now. ie.

$this->form_validation->run()

If you are not using form_validation you will be using the old one.

So yes you need to move away from.

$this->validation->run()

Jusr read the new userdocs for it.
#3

[eluser]internut[/eluser]
Gotcha! Makes perfect sense. Thanks for clearing up the new library name.

Appreciate it!
#4

[eluser]internut[/eluser]
ugh such crap work putting this into place. I do like the cleaner code though.
#5

[eluser]internut[/eluser]
done! nice work CI guys!




Theme © iAndrew 2016 - Forum software by © MyBB