Function set_value() not working as expected |
[eluser]FireStarter[/eluser]
According to this issue on GitHub, the problem is a 'known limitation'. https://github.com/EllisLab/CodeIgniter/issues/1348 The problem is, what happens if you have the validation library auto loaded? 20,000 views suggest that this is a real problem. The documents don't describe this 'limitation' at all. We should really have this bug fixed, or if it's not considered a bug, just have the feature updated. For example, I autoload the validation library but on my login form (email/password only), I don't wish to run any validation - it's pointless, for me. I do however wish to stick with set_value() to keep the email address in place when the password is wrong. Does anybody else feel that the functionality should be changed? Edit: Looks like the issue may have actually been fixed in CodeIgniter 3.0. Can anyone who is more familiar with GitHub (I'm not a user myself) confirm this? I'm looking at: https://github.com/EllisLab/CodeIgniter/pull/1581 Thanks Edit 2: My bad. That pull request is just an update to the documentation. Lame. So if I autoload the validation class I MUST validate EVERY INPUT or else set_value becomes useless. How ridiculous. |
Welcome Guest, Not a member yet? Register Sign In |