TL DR
When using auxiliary functions of the CodeIgnIter form, set_*there are only two cases :
Form_validation .- (
Form_validation).
set_*, , , , .
(set_ * )
set_* . , set_select():
: set_select($field = '', $value = '', $default = FALSE)
1.
set_select(), CodeIgniter _get_validation_object() .
_get_validation_object() object, FALSE ( ).
FALSE, set_select() $_POST, field , $value $default, , / selected="selected" ''.
, .
2.
, set_select() Form_validation::set_select() .
Form_validation _field_data, , / field (, ).
Form_validation::set_select() field in _field_data empty .
_field_data set_rules().
, , field, set_select().
.
, set_*.