Welcome Guest, Not a member yet? Register   Sign In
form validation question
#11

[eluser]rsmarsha[/eluser]
@cideveloper Fixed it. Smile It was due to the field name default. I changed the code to :

Code:
$this->db->order_by("`default`", "desc");
        $this->db->order_by("name", "asc");

It now works, thanks for your help.
#12

[eluser]boltsabre[/eluser]
Hey guys, a little off topic, and sorry for hijacking this post (but it seems resolved...), but is there any actual performance (or other) advantages to moving the validation rule declarations into a config file apart from cleaner code??? Just interested to know, thanks!
#13

[eluser]cideveloper[/eluser]
I just did a quick benchmark test with 200 fields. no real difference between config and controller rules in terms of time. But trust me the controller was a mess with all those validation fields in it. So I would say its specifically for cleanliness. I also like that you can associate a Controller Function with a Rule Group. Is so neat :-)
#14

[eluser]boltsabre[/eluser]
Ah great, thanks for doing that, good information to know! (p.s. i hope you didn't spend too long making your benchmark test, I kind of feel bad now)...




Theme © iAndrew 2016 - Forum software by © MyBB