Please advise on recommended practice for the following
In my controller have a user object. I then pass this user object to my view.
In the view all the fields I set their value to object->db_fieldname
When the form is submitted the posted values(that are db fields) are assigned to the object->posted_field and save() is ran.
Various validation rules etc run fine, if the submission does not succeed the form is shown again and all the last entered values from object->db_fieldname appear in the fields as expected.
Is this a good practice? Are there any other methods that are better/secure/faster? For example standard CI has a form validation helper that has a set_value($fieldname) to call that posted/validated value..