Welcome Guest, Not a member yet? Register   Sign In
Can I change the database for is_unique?
#6

[eluser]CroNiX[/eluser]
You're right that it wouldn't work because the rules don't get executed until later in the code (form_validation::run()).

If you change the database right before $this->form_validation->run() and then change it back right after (and before you do things like store/retrieve anything in the db), it might work as long as nothing else in the validation rules depend on the main database.


Messages In This Thread
Can I change the database for is_unique? - by El Forum - 02-21-2012, 02:54 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:01 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:22 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:25 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:36 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:43 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:50 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB