Welcome Guest, Not a member yet? Register   Sign In
set_value() only working if the field is part of validation - CI 2.0
#11

[eluser]CroNiX[/eluser]
If you are using form validation, you must have a rule defined for each field or it won't repopulate because then the form helper won't know about it. For fields that don't "need" a rule, just pass it trim or something.

$this->form_validation->set_rules('field', 'my field name', 'trim');

Now it will repopulate normally using set_value.


Messages In This Thread
set_value() only working if the field is part of validation - CI 2.0 - by El Forum - 01-06-2011, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB