I found myself in a grey area while cleaning up my "Registration" method in my MVC.
Quick background: I create arrays of values that are associated for a particular task. For example:
$field_arr //array of all the values from the register-form.
$user_arr //array of values needed to create a new user.
$required_arr //array of all values that are required for sign up.
$values_arr //array that holds all the values for the items in the multiple arrays.
etc...etc...
At first I began just reorganizing my code by placing these blocks of variable declarations/population in a helper function in the controller, which the "Register" controller-method would just call at the beginning of its routine.
But then a switch went off in my head.
Since this information relates to the User model shouldn't it just be placed in the User model?
But then the other side of my head came back with.
Yes, it does relate, but is only used for Registration, and therefore is only useful here in the controller.
Which side of my head is wrong? Any guidance would be very helpful and appreciated. Thank you.