Welcome Guest, Not a member yet? Register   Sign In
Run multiple form validation from config file
#10

[eluser]Ki[/eluser]
Got the same problem!
CI will only check the first validation->run('name1') and not the second... I do get the errors from either validation rule set in my config file, but only errors for the first validation.
Examples:
1) This will give you errors for rules set in name1 validation array. If no errors encountered, name 2 will not be checked... if errors exist, name 2 is not checked, even if I enter erroneous input
$this->validation->run('name1');
$this->validation->run('name2');

2) This will give you errors for rules set in name2 validation array. If no errors encountered, name1 will not be checked... if errors exist, name1 is not checked, even if I enter erroneous input
$this->validation->run('name2');
$this->validation->run('name1');

Can someone comment on this? Can you really run only 1 form validation per controller?


Messages In This Thread
Run multiple form validation from config file - by El Forum - 07-18-2009, 02:42 PM
Run multiple form validation from config file - by El Forum - 07-19-2009, 12:39 AM
Run multiple form validation from config file - by El Forum - 07-19-2009, 12:41 AM
Run multiple form validation from config file - by El Forum - 07-19-2009, 05:14 AM
Run multiple form validation from config file - by El Forum - 07-20-2009, 02:58 AM
Run multiple form validation from config file - by El Forum - 07-20-2009, 03:28 AM
Run multiple form validation from config file - by El Forum - 07-20-2009, 03:35 AM
Run multiple form validation from config file - by El Forum - 07-20-2009, 03:37 AM
Run multiple form validation from config file - by El Forum - 07-20-2009, 03:49 AM
Run multiple form validation from config file - by El Forum - 07-27-2009, 05:22 PM
Run multiple form validation from config file - by El Forum - 07-27-2009, 10:13 PM
Run multiple form validation from config file - by El Forum - 07-27-2009, 10:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB